Update run.sh

This commit is contained in:
2023-12-17 21:32:54 -06:00
parent 2d905b4430
commit af1386bc5a

16
run.sh
View File

@@ -45,14 +45,14 @@ if [ "${1}" == "update" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}\n"
fi
read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
case "$choice" in
[Yy])
echo -e "\n\n${idsCL[Yellow]}Restarting Powerwall services to apply update ..."
${PW_SCRIPT} service all restart
;;
*) echo;;
esac
# read -n 1 -p "Do you want to restart PowerWall Services? (y/N): " choice
# case "$choice" in
# [Yy])
# echo -e "\n\n${idsCL[Yellow]}Restarting Powerwall services to apply update ..."
# ${PW_SCRIPT} service all restart
# ;;
# *) echo;;
# esac
elif [ "${2}" != "q" ]; then
echo -en "\e[1A";