From 35701cb845a9ebee89967de4a1566c5d218bf1fe Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Sep 2023 22:54:31 -0400 Subject: [PATCH] Update pialert-install.sh test --- install/pialert-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 34b57319..c452d0b7 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -72,7 +72,9 @@ done git config --global --add safe.directory /opt/pialert sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf sed -i 's/~/\/opt/g' /opt/pialert/install/pialert.cron +set +e (crontab -l 2>/dev/null; cat /opt/pialert/install/pialert.cron) | crontab - +set -e cp -R /opt/pialert/install/pialert_update.sh /usr/bin/update sed -i 's/~/\/opt/g' /usr/bin/update chmod +x /usr/bin/update