Your ROOT_URL in app.ini is https://git.bwnetwork.us/ but you are visiting http://git.bwnetwork.us/Administrator/Proxmox_Helper_scripts/commit/d1da3949eac9e7f9a7ced9ba51d957b5f59b8aeb?style=split&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Update pialert-install.sh

- add crontab
- fixes https://github.com/tteck/Proxmox/issues/1806
pull/1851/head
tteckster 2 years ago committed by GitHub
parent 1fb4fcf84e
commit d1da3949ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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" ln -s "$src_dir/$file" "$dest_dir/$file"
done done
sed -i 's#PIALERT_PATH\s*=\s*'\''/home/pi/pialert'\''#PIALERT_PATH = '\''/opt/pialert'\''#' /opt/pialert/config/pialert.conf 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 echo "python3 /opt/pialert/back/pialert.py 1" >/usr/bin/scan
chmod +x /usr/bin/scan chmod +x /usr/bin/scan
echo "/opt/pialert/back/pialert-cli set_permissions --lxc" >/usr/bin/permissions echo "/opt/pialert/back/pialert-cli set_permissions --lxc" >/usr/bin/permissions

Loading…
Cancel
Save

Powered by BW's shoe-string budget.