mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-06 17:15:38 -08:00
Create buildtimestamp.txt if not exists, fix shellcheck warnings
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user