Update powerwall.sh

This commit is contained in:
2024-07-23 17:41:43 -05:00
parent cdcc9c1170
commit 33a830972f

View File

@@ -169,6 +169,7 @@ COOLDOWN_SRVRM(){
} }
COOLDOWN_SRVRM_OVERNIGHT(){ COOLDOWN_SRVRM_OVERNIGHT(){
if [ "${1}" == "OFF" ]; then if [ "${1}" == "OFF" ]; then
echo "Cooling off server room for the night"
${PW_FOLDER}/esxi-scripts/cooldown.overnight.ps1 ${PW_FOLDER}/esxi-scripts/cooldown.overnight.ps1
sleep 20 sleep 20
SHUTDOWN_SERVER 10.10.2.16 -esxi off SHUTDOWN_SERVER 10.10.2.16 -esxi off
@@ -176,6 +177,7 @@ COOLDOWN_SRVRM_OVERNIGHT(){
${PW_FOLDER}/esxi-scripts/set-drs.ps1 2 ${PW_FOLDER}/esxi-scripts/set-drs.ps1 2
elif [ "${1}" == "ON" ]; then elif [ "${1}" == "ON" ]; then
echo "opposite of Cooling off server room for the night"
SHUTDOWN_SERVER 10.10.2.16 -power on SHUTDOWN_SERVER 10.10.2.16 -power on
sleep 600 sleep 600
${PW_FOLDER}/esxi-scripts/coolup.overnight.ps1 ${PW_FOLDER}/esxi-scripts/coolup.overnight.ps1