Update powerwall.sh

This commit is contained in:
2023-12-13 18:44:35 -06:00
parent fc180007f7
commit 77a012d828

View File

@@ -1162,8 +1162,7 @@ RESTARTALL_SERVICES(){
} }
STOPALL_SERVICES(){ STOPALL_SERVICES(){
for srvc in "${!PW_POWERWALL_SERVICES[@]}"; do for srvc in "${!PW_POWERWALL_SERVICES[@]}"; do
echo "HERE: ${srvc}" SERVICE_MNG ${srvc} stop
# SERVICE_MNG ${srvc} stop
done done
} }
STARTALL_SERVICES(){ STARTALL_SERVICES(){
@@ -1172,6 +1171,7 @@ STARTALL_SERVICES(){
done done
} }
SERVICE_MNG(){ SERVICE_MNG(){
echo "HERE: ${PW_POWERWALL_SERVICES[${1}]}"
if [ "${2}" = "start" ]; then if [ "${2}" = "start" ]; then
sa=Starting sa=Starting
@@ -1186,7 +1186,7 @@ SERVICE_MNG(){
fi fi
echo -en "${idsCL[LightCyan]}${sa} ${PW_POWERWALL_SERVICES[${1}]} Service ... " echo -en "${idsCL[LightCyan]}${sa} ${PW_POWERWALL_SERVICES[${1}]} Service ... "
/bin/systemctl ${2} ${PW_POWERWALL_SERVICES[${1}]} # /bin/systemctl ${2} ${PW_POWERWALL_SERVICES[${1}]}
echo -e "${idsCL[Green]}Done${idsCL[Default]}" echo -e "${idsCL[Green]}Done${idsCL[Default]}"
} }
STOP_SERVICE(){ STOP_SERVICE(){