Create buildtimestamp.txt if not exists, fix shellcheck warnings

This commit is contained in:
Markus Lorenz
2023-11-15 14:09:52 +01:00
parent a0d34876cc
commit 1e75eeab4c
4 changed files with 20 additions and 16 deletions

View File

@@ -26,6 +26,10 @@ rm -R $INSTALL_DIR/pialert
# Clone the application repository
git clone https://github.com/jokob-sk/Pi.Alert "$INSTALL_DIR/pialert"
# Check for buildtimestamp.txt existence, otherwise create it
if [ ! -f /home/pi/pialert/front/buildtimestamp.txt ]; then
date +%s > /home/pi/pialert/front/buildtimestamp.txt
fi
# Start PiAlert
"$INSTALL_DIR/pialert/dockerfiles/start.sh"