Fixed monitoring script not rebooting the raspberries.

main
WhatTheMike 2 years ago
parent 546874eea8
commit adaadd9380

@ -15,7 +15,7 @@ while [ $upsstat -ne 0 ]; do
if [ $upsstat -eq 1 ]; then
let retries=retries-1
if [ $retries -le 0 ]; then
reboot
/usr/sbin/shutdown -r now
fi
sleep $retry_delay
fi

Loading…
Cancel
Save