This commit is contained in:
2025-07-12 10:37:04 -05:00
parent 5614ae14ac
commit adf883d1d5
4 changed files with 10 additions and 10 deletions

4
run.sh
View File

@@ -49,7 +49,7 @@ if [ "${1}" == "update" ]; then
echo -en "\e[1A";
echo -e "\e[0K\r ${idsCL[Green]}Update to v${PW_VERS} complete${idsCL[Default]}"
fi
touch ${NM_TMPFOLDER}/.nosend_update
touch ${PW_TMPFOLDER}/.nosend_update
if [ "${2}" != "q" ] && [ "${2}" != "y" ] && [ "${2}" != "n" ]; then
if [ -f ${NM_TMPFOLDER}/.singleserver.PW.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO.primary ]; then
echo -en "${idsCL[LightCyan]}Do you want to restart PowerWall Services as well? (y/N): "
@@ -69,7 +69,7 @@ if [ "${1}" == "update" ]; then
elif [ "${2}" == "q" ]; then
([ -f ${NM_TMPFOLDER}/.singleserver.PW.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO.primary ]) && ${PW_SCRIPT} service all restart >/dev/null 2>&1
fi
sleep 60s && rm -f ${NM_TMPFOLDER}/.nosend_update &
sleep 60s && rm -f ${PW_TMPFOLDER}/.nosend_update &
elif [ "${2}" != "q" ]; then
echo -en "\e[1A";