Update powerwall.sh
This commit is contained in:
14
powerwall.sh
14
powerwall.sh
@@ -926,6 +926,11 @@ SHUTDOWN_MAIN(){
|
|||||||
reason='Server Room Overheated!'
|
reason='Server Room Overheated!'
|
||||||
sendnotice=true
|
sendnotice=true
|
||||||
|
|
||||||
|
elif [ "${1}" == "power"]; then
|
||||||
|
SHUTDOWN_SERVERS MAIN ${2}
|
||||||
|
reason='Low Power!'
|
||||||
|
sendnotice=true
|
||||||
|
|
||||||
else
|
else
|
||||||
sendnotice=false
|
sendnotice=false
|
||||||
fi
|
fi
|
||||||
@@ -943,6 +948,15 @@ SHUTDOWN_SYS(){
|
|||||||
if [ "${1}" == "ServerRoomTH"]; then
|
if [ "${1}" == "ServerRoomTH"]; then
|
||||||
SHUTDOWN_SERVERS SYS ${2}
|
SHUTDOWN_SERVERS SYS ${2}
|
||||||
reason='Server Room Overheated!'
|
reason='Server Room Overheated!'
|
||||||
|
sendnotice=true
|
||||||
|
|
||||||
|
elif [ "${1}" == "power"]; then
|
||||||
|
SHUTDOWN_SERVERS SYS ${2}
|
||||||
|
reason='Low Power!'
|
||||||
|
sendnotice=true
|
||||||
|
|
||||||
|
else
|
||||||
|
sendnotice=false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${sendnotice}" == "true"]; then
|
if [ "${sendnotice}" == "true"]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user