From 6058a6dea61dd3a28c6271308ebf36c6a7372d4f Mon Sep 17 00:00:00 2001 From: Adriel Sand Date: Sun, 26 Sep 2021 19:16:53 +0300 Subject: [PATCH] added showing date and time; added conveniences --- make-new-file.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-new-file.cgi b/make-new-file.cgi index c7f358f..3585304 100755 --- a/make-new-file.cgi +++ b/make-new-file.cgi @@ -8,11 +8,11 @@ date_now=$(date +'%b %d, %Y at %H:%M') if [[ $(cat state.txt) = "ON" ]] then echo "OFF" > state.txt - cat off.html | sed "s/date-n-time-placeholder/$date_now" > /usr/local/apache2/htdocs/index.html + cat off.html | sed "s/date-n-time-placeholder/$date_now/" > /usr/local/apache2/htdocs/index.html ./telegram "✅ The generator is OFF!" else echo "ON" > state.txt - cat on.html | sed "s/date-n-time-placeholder/$date_now" > /usr/local/apache2/htdocs/index.html + cat on.html | sed "s/date-n-time-placeholder/$date_now/" > /usr/local/apache2/htdocs/index.html ./telegram "❌ The generator is on. :(" fi