Update powerwall.sh

This commit is contained in:
2023-05-15 21:29:49 -05:00
parent 3029c20d02
commit e1c514e831

View File

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