ALWAYS_FRESH_INSTALL fix

This commit is contained in:
Jokob-sk
2024-02-18 09:48:22 +11:00
parent ea7dfa832d
commit 34f5658516

View File

@@ -116,12 +116,12 @@ echo "[INSTALL] Copy starter pialert.db and pialert.conf if they don't exist"
# DANGER ZONE: ALWAYS_FRESH_INSTALL
if [ "$ALWAYS_FRESH_INSTALL" = true ]; then
echo "[INSTALL] ❗ ALERT db and config folders are cleared because the ALWAYS_FRESH_INSTALL is set to: $ALWAYS_FRESH_INSTALL"
echo "[INSTALL] ❗ ALERT /db and /config folders are cleared because the ALWAYS_FRESH_INSTALL is set to: $ALWAYS_FRESH_INSTALL"
# Delete content of "$INSTALL_DIR/pialert/config/"
rm -rf "$INSTALL_DIR/pialert/config/"*
# Delete content of "$FILEDB"
rm -rf "$FILEDB"/*
# Delete content of "$INSTALL_DIR/pialert/db/"
rm -rf "$INSTALL_DIR/pialert/db/"*
fi