Update powerwall.sh

This commit is contained in:
2023-05-15 21:31:00 -05:00
parent 1c9e842b4b
commit 610664fb24

View File

@@ -351,8 +351,8 @@ STOP_SERVICE(){
CHECK_SERVICES(){
for srvc in "${POWERWALL_SERVICES[@]}"; do
echo -en "${srvc} - ${POWERWALL_SERVICES[${srvc}]} ... "
[ "$(systemctl is-active ${POWERWALL_SERVICES[${srvc}]})" == "active" ] && echo "Running" || echo "Not Running"
echo -en "${srvc} ... "
[ "$(systemctl is-active ${srvc})" == "active" ] && echo "Running" || echo "Not Running"
done
}