From d1da3949eac9e7f9a7ced9ba51d957b5f59b8aeb Mon Sep 17 00:00:00 2001 From: tteckster Date: Sun, 17 Sep 2023 16:44:04 -0400 Subject: [PATCH] Update pialert-install.sh - add crontab - fixes https://github.com/tteck/Proxmox/issues/1806 --- install/pialert-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/pialert-install.sh b/install/pialert-install.sh index 63c9ba4d..f0e3f0d6 100644 --- a/install/pialert-install.sh +++ b/install/pialert-install.sh @@ -70,6 +70,8 @@ for file in pialert.vendors.log pialert.IP.log pialert.1.log pialert.cleanup.log ln -s "$src_dir/$file" "$dest_dir/$file" done 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 +(crontab -l 2>/dev/null; cat /opt/pialert/install/pialert.cron) | crontab - echo "python3 /opt/pialert/back/pialert.py 1" >/usr/bin/scan chmod +x /usr/bin/scan echo "/opt/pialert/back/pialert-cli set_permissions --lxc" >/usr/bin/permissions