Fixed monitoring script not rebooting the raspberries.

This commit is contained in:
WhatTheMike 2022-12-23 20:28:37 +00:00
parent 546874eea8
commit adaadd9380

View File

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