Update powerwall.sh

This commit is contained in:
2022-09-30 22:23:28 -05:00
parent e35764d9e6
commit a161e161a8

View File

@@ -205,7 +205,7 @@ POWERLOGGER_SERVICE(){
done done
} }
UPDATE_SERVICES(){ RESTART_SERVICES(){
for srvc in "${POWERWALL_SERVICES[@]}"; do for srvc in "${POWERWALL_SERVICES[@]}"; do
/bin/systemctl stop $srvc /bin/systemctl stop $srvc
done done
@@ -270,7 +270,7 @@ if [ ${action-x} ]; then
case $action in case $action in
stopall) STOPALL_SERVICES;; stopall) STOPALL_SERVICES;;
startall) STARTALL_SERVICES;; startall) STARTALL_SERVICES;;
updateservices) UPDATE_SERVICES;; restartall) RESTART_SERVICES;;
checktemp) CHECKTEMP ${2};; checktemp) CHECKTEMP ${2};;
checktemp_service) checktemp_service)
if [ "${2}" = "stop" ]; then if [ "${2}" = "stop" ]; then