mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-30 02:14:34 +01:00
Update pialert-install.sh
fix crontab
This commit is contained in:
parent
3115e46e30
commit
fc8ddc3a7c
@ -72,10 +72,7 @@ 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 -
|
||||
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
|
||||
chmod +x /usr/bin/update
|
||||
|
Loading…
Reference in New Issue
Block a user