From ec195c8fd2d642465a2e52e410997bba4daf67e1 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 13 Dec 2023 19:11:56 -0600 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 8decd116..4c0006f9 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -1159,6 +1159,7 @@ RESTARTALL_SERVICES(){ sleep 10s echo -en "\033[2K\r" STARTALL_SERVICES + echo } STOPALL_SERVICES(){ for srvc in "${!PW_POWERWALL_SERVICES[@]}"; do @@ -1172,19 +1173,18 @@ STARTALL_SERVICES(){ } SERVICE_MNG(){ if [ "${2}" == "start" ]; then - sa=Starting + sa="${idsCL[Green]}Starting" elif [ "${2}" == "stop" ]; then - sa=Stopping + sa="${idsCL[LightRed]}Stopping" elif [ "${2}" == "restart" ]; then - sa=Restarting + sa="${idsCL[Green]}Restarting" elif [ "${2}" == "status" ]; then - sa='Status for' - + sa="${idsCL[Yellow]}Status for" fi - MSG="${sa} ${PW_POWERWALL_SERVICES[${1}]} Service" + MSG="${sa}${idsCL[Default]} ${PW_POWERWALL_SERVICES[${1}]} Service" c=0; spc=''; spc1=`expr 39 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done echo -en "${idsCL[LightCyan]}${MSG}${spc}${idsCL[Default]}: " # /bin/systemctl ${2} ${PW_POWERWALL_SERVICES[${1}]}