Update powerwall.sh

This commit is contained in:
2023-11-03 19:26:55 -05:00
parent 85812bafef
commit ba42e26652

View File

@@ -1455,7 +1455,7 @@ fi
elif [ "${3}" = "status" ]; then
srvc=${PW_POWERWALL_SERVICES[${2}]}
c=0; spc=''; spc1=`expr 25 - ${#srvc}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
echo -en "${idsCL[LightCyan]}${srvc}${spc}: "
echo -e "${idsCL[LightCyan]}${srvc}${spc}: "
[ "$(systemctl is-active ${srvc})" == "active" ] && echo -en "${idsCL[Green]}Running" || echo -en "${idsCL[Yellow]}Not Running"
echo -e "${idsCL[Default]}"
echo
@@ -1465,7 +1465,7 @@ fi
logrotate) LOGROTATE;;
update)
echo -e "${idsCL[LightCyan]}Will reboot monitoring services in the background to apply updates ..."
echo -en "${idsCL[LightCyan]}Will reboot monitoring services in the background to apply updates ..."
RESTARTALL_SERVICES >/dev/null 2>&1 &
echo -e "${idsCL[Green]}Done${idsCL[Default]}\n"
;;