From 009f6afc089c8add4ebf7f647da5f1158b2200b4 Mon Sep 17 00:00:00 2001 From: Valentin Date: Mon, 13 May 2024 02:13:17 +0200 Subject: [PATCH] corrections matomo --- bin/setup_matomo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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