diff --git a/bin/setup_matomo.sh b/bin/setup_matomo.sh index 214d1ad..2a1b249 100644 --- a/bin/setup_matomo.sh +++ b/bin/setup_matomo.sh @@ -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 '' $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 \ No newline at end of file +mv $tmp_file $index_file \ No newline at end of file