From 3115e46e3041446569ec536c5dead91c8a35f187 Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Sep 2023 23:45:47 -0400 Subject: [PATCH] Update pialert-install.sh --- install/pialert-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 8c45003a..563244ea 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -71,9 +71,10 @@ for file in pialert.vendors.log pialert.IP.log pialert.1.log pialert.cleanup.log 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 -e 's/0 2 \* \* \*\/4/0 2 * * 3/g' -e 's/~/\/opt/g' /opt/pialert/install/pialert.cron +sed -i 's/~/\/opt/g' /opt/pialert/install/pialert.cron set +e -(crontab -l 2>/dev/null; cat /opt/pialert/install/pialert.cron) | crontab - +#(crontab -l 2>/dev/null; cat /opt/pialert/install/pialert.cron) | crontab - +crontab /opt/pialert/install/pialert.cron set -e cp -R /opt/pialert/install/pialert_update.sh /usr/bin/update sed -i 's/~/\/opt/g' /usr/bin/update