update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
VERS='2.8.34-05052025'
|
||||
PW_VERS='2.8.34-05052025'
|
||||
|
||||
noheader=' update service dailytemp confsync -r -report test '
|
||||
|
||||
|
||||
@@ -879,7 +879,7 @@ if [[ "${1}" != *"_service" ]] && [[ "${noheader}" != *" ${1} "* ]] && [[ "${noh
|
||||
DIVIDER . lightGreen ${PRI_WIDTH}
|
||||
msg="|| PowerWall Management ${idsCL[Default]}"
|
||||
c=0; spc=''; spc1=`expr 77 - ${#msg} - ${#VERS}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; ((c++)); done
|
||||
echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${VERS} ${idsCL[LightGreen]}||${idsCL[Default]}"
|
||||
echo -e "${idsCL[LightGreen]}${msg}${spc}${idsCL[LightGray]}v${PW_VERS} ${idsCL[LightGreen]}||${idsCL[Default]}"
|
||||
DIVIDER . lightGreen ${PRI_WIDTH}
|
||||
fi
|
||||
fi
|
||||
|
||||
2
run.sh
2
run.sh
@@ -46,7 +46,7 @@ if [ "${1}" == "update" ]; then
|
||||
source /opt/idssys/powerwall/defaults.inc
|
||||
if [ "${2}" != "q" ]; then
|
||||
echo -en "\e[1A";
|
||||
echo -e "\e[0K\r ${idsCL[Green]}Update to v${VERS} complete${idsCL[Default]}"
|
||||
echo -e "\e[0K\r ${idsCL[Green]}Update to v${PW_VERS} complete${idsCL[Default]}"
|
||||
fi
|
||||
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): "
|
||||
|
||||
Reference in New Issue
Block a user