From c782ae6bc4ebd5a84801d99834c9591afaf5aa67 Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 11 Apr 2022 12:32:14 +0200 Subject: [PATCH] add date to homepage --- crowdbunker.sh | 1 + templates/homepage.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crowdbunker.sh b/crowdbunker.sh index 91a2706..1c40ce4 100755 --- a/crowdbunker.sh +++ b/crowdbunker.sh @@ -320,6 +320,7 @@ echo "########################################################################## cp ${MY_PATH}/templates/homepage.html ~/.zen/bunkerbox/homepage/index.html cp ${MY_PATH}/templates/crowbunkerbox.png ~/.zen/bunkerbox/homepage/ sed -i "s~_IPNSL_~$IPNSL~g" ~/.zen/bunkerbox/homepage/index.html + sed -i "s/_DATE_/$(date -u "+%Y-%m-%d#%H:%M:%S")/g " ~/.zen/bunkerbox/homepage/index.html cp ~/.zen/bunkerbox/history.json ~/.zen/bunkerbox/homepage/history.json cp ~/.zen/bunkerbox/calendar.json ~/.zen/bunkerbox/homepage/calendar.json diff --git a/templates/homepage.html b/templates/homepage.html index 2bee560..e63ed0d 100644 --- a/templates/homepage.html +++ b/templates/homepage.html @@ -2,7 +2,7 @@ - [BunkerBOX] Home + [BunkerBOX] Home _DATE_