From 22ed547b6d823ed879a401cd6d91560f6ab4f534 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 22 Apr 2023 15:20:19 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index e46fe03..7727edb 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -14,6 +14,13 @@ source /opt/idssys/defaults/default.inc source /opt/idssys/mediamanager/settings.conf source /opt/idssys/mediamanager/defaults.inc +if [ "${2}" == "q" ]; then + unset idsCL idsBG idsST + idsCL=('') + idsBG=('') + idsST=('') +fi + [ -f ${MMFOLDER}/vpninfo ] && source ${MMFOLDER}/vpninfo if [ "${action}" != "check" ] && [ "${action}" != "update" ] && [ "${2}" != "noup" ]; then @@ -36,12 +43,6 @@ cw_spc=40 MMSTART(){ [ $VERBOSE = true ] && chktmstart=`date +%s` - if [ "${1}" == "check" ] && [ "${2}" == "q" ]; then - unset idsCL idsBG idsST - idsCL=('') - idsBG=('') - idsST=('') - fi if [ "${1}" = "start" ] || [ "${1}" = "restart" ] || [ "${1}" = "" ]; then GOFORSTART=true;