Update powerwall.sh
This commit is contained in:
12
powerwall.sh
12
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}]}
|
||||
|
||||
Reference in New Issue
Block a user