Update powerwall.sh

This commit is contained in:
2023-11-06 20:50:04 -06:00
parent a1a47f915e
commit 4454f3595b

View File

@@ -653,7 +653,7 @@ CHECKPOWER(){
gochk=1
fi
echo -en "${PW_HOST_IDRACS[${SENSOR}]} - ${1} - $gochk = "
if [ "${1}" == "mainsite" ] && [[ "${PW_HOST_IDRACS[${SENSOR}]}" = *"10.10."* ]]; then
if [ "${1}" == "offsite" ] && [[ "${PW_HOST_IDRACS[${SENSOR}]}" = *"10.2."* ]]; then
echo yes
else
echo no