This commit is contained in:
2023-05-21 08:49:18 -05:00
parent 2010fdfd13
commit e039af8c59
2 changed files with 3 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ UPDATE_SERVICES=(${UPDATESERVICES})
unset IFS
noheader=' check noup update update-organizr '
allowrun=' status update stop vpninfo '
logfile=${MMFOLDER}/logs/logfile
outputlogfile=${MMFOLDER}/logs/outputs.check.log

4
run.sh
View File

@@ -90,12 +90,12 @@ if [ -f ${TMPFOLDER}/mm.stop.checking ]; then
elif [ "${1}" = "check" ] && [ "$(ip link | grep "${VPN_INTERFACE}")" = "" ] && [ ! -f ${TMPFOLDER}/mm.vpn* ] && [ $(uptime_minutes) -lt 3 ]; then
rm -f ${TMPFOLDER}/mm.stop*
elif [ "${1}" != "status" ] && [ "${1}" != "update-service" ] && [ "${1}" != "update-allservices" ] && [ "${1}" != "stop" ] && [ "${1}" != "" ]; then
elif [[ "${allowrun}" != *" ${1} "* ]] && [ "${1}" != "" ]; then
echo -e "${idsCL[LightCyan]}Try again later, 'mm' program currently in use...${idsCL[Default]}"
fi
fi
if [ ! -f ${TMPFOLDER}/mm.stop.checking ] || [ "${1}" == "status" ] || [ "${1}" == "update-service" ] || [ "${1}" == "update-allservices" ] || [ "${1}" == "stop" ] || [ "${1}" == "" ]; then
if [ ! -f ${TMPFOLDER}/mm.stop.checking ] || [[ "${allowrun}" == *" ${1} "* ]] || [ "${1}" == "" ]; then
[ "${1}" == "start" ] && rm -f ${TMPFOLDER}/mm.stop
${MMFOLDER}/mm-scripts.sh ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}
fi