diff --git a/defaults.inc b/defaults.inc index d21aa222..528803b4 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -PW_VERS='2.10.23-06192025' +PW_VERS='2.10.24-06192025' noheader=' update service dailytemp confsync -r -report test ' diff --git a/run.sh b/run.sh index 603f45c1..dc61eee4 100755 --- a/run.sh +++ b/run.sh @@ -63,10 +63,10 @@ if [ "${1}" == "update" ]; then fi elif [ "${2}" == "y" ]; then - ${PW_SCRIPT} service all restart + ([ -f ${NM_TMPFOLDER}/.singleserver.PW.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO.primary ]) && ${PW_SCRIPT} service all restart elif [ "${2}" == "q" ]; then - ${PW_SCRIPT} service all restart >/dev/null 2>&1 + ([ -f ${NM_TMPFOLDER}/.singleserver.PW.primary ] || [ -f ${NM_TMPFOLDER}/.singleserver.PWO.primary ]) && ${PW_SCRIPT} service all restart >/dev/null 2>&1 fi elif [ "${2}" != "q" ]; then