corrections matomo
This commit is contained in:
parent
65c9d0dfd1
commit
009f6afc08
|
|
@ -26,6 +26,6 @@ sed -i "s/var matomoInstanceUrl = '';/var matomoInstanceUrl = '$matomo_url';/g"
|
|||
sed -i 's/<\/head>/\n<\/head>/' $index_file
|
||||
line_number=$(grep -n '</head>' $index_file | cut -d':' -f1)
|
||||
head -n $(($line_number - 1)) $index_file > $tmp_file
|
||||
cat $temp_matomo_script >> $tmp_file
|
||||
tail -n +$line_number $index_file >> $tmp_file
|
||||
mv $tmp_file $index_file
|
||||
rm $tmp_file
|
||||
Loading…
Reference in New Issue