update
This commit is contained in:
@@ -1185,8 +1185,8 @@ SERVICE_MNG(){
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
MSG="${sa} ${PW_POWERWALL_SERVICES[${1}]} Service"
|
MSG="${sa} ${PW_POWERWALL_SERVICES[${1}]} Service"
|
||||||
c=0; spc=''; spc1=`expr 40 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
c=0; spc=''; spc1=`expr 38 - ${#MSG}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done
|
||||||
echo -en "${idsCL[LightCyan]}${MSG}${spc}: "
|
echo -en "${idsCL[LightCyan]}${MSG}${spc}${idsCL[Default]}: "
|
||||||
# /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]}"
|
||||||
}
|
}
|
||||||
|
|||||||
2
run.sh
2
run.sh
@@ -48,7 +48,7 @@ if [ "${1}" == "update" ]; then
|
|||||||
read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
|
read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
[Yy])
|
[Yy])
|
||||||
echo -e "\n${idsCL[Yellow]}Restarting Powerwall services to apply update ${idsCL[White]} ... \n"
|
echo -e "\n${idsCL[Yellow]}Restarting Powerwall services to apply update ${idsCL[White]}\n"
|
||||||
${PW_SCRIPT} service all restart
|
${PW_SCRIPT} service all restart
|
||||||
;;
|
;;
|
||||||
*) echo;;
|
*) echo;;
|
||||||
|
|||||||
Reference in New Issue
Block a user