From d80100cf732818686eef680791d327aac3560bf9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 30 Jun 2023 19:25:45 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index c76b45a..b248d1a 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -49,7 +49,7 @@ MMCRONCHECK(){ echo "update services crontask triggered" if [ $(expr `date +%s` - $(stat -c %Y ${TMPFOLDER}/vers.info)) -gt 600 ]; then echo "updating services executing" - # /usr/local/bin/mm update-allservices q >/dev/null 2>&1 + # /usr/local/bin/mm update-allservices ${1} >/dev/null 2>&1 echo "$(date) - Updated All Services" >> $logfile else echo "not updating" @@ -58,7 +58,7 @@ MMCRONCHECK(){ echo "update mm crontask triggered" if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/.git/ORIG_HEAD)) -gt 600 ] && [ "`git -C /opt/idssys/nodemgmt log --pretty=%H ...refs/heads/${GBRANCH}^ | head -n 1`" != "`git -C /opt/idssys/nodemgmt ls-remote origin -h refs/heads/${GBRANCH} |cut -f1`" ]; then echo "updating mm executing" - /usr/local/bin/mm update q >/dev/null 2>&1 + /usr/local/bin/mm update ${1} >/dev/null 2>&1 source /opt/idssys/mediamanager/defaults.inc echo "$(date) - Updated MM Scripts to v${VERS}" >> $logfile else @@ -69,10 +69,10 @@ MMCRONCHECK(){ fi # if [ -f ${TMPFOLDER}/mm.stop ]; then - # /usr/local/bin/mm check q >/dev/null 2>&1 + # /usr/local/bin/mm check ${1} >/dev/null 2>&1 # else # echo -e "$(date) - Starting log #############################" >> ${outputlogfile} - # /usr/local/bin/mm check q >> ${outputlogfile} + # /usr/local/bin/mm check ${1} >> ${outputlogfile} # echo -e "$(date) - Finished log #############################" >> ${outputlogfile} # fi @@ -1489,7 +1489,7 @@ if [ ! -f ${TMPFOLDER}/mm.update.stop ]; then fi case $action in clear) echo -e "${idsCL[LightCyan]}Clearing all mm.* files ${idsCL[Default]}"; echo;; - cron) MMCRONCHECK;; + cron) MMCRONCHECK ${2};; setup) MMSETUP;; vpninfo) GETVPNINFO;; speedtest) VPNSPEEDTEST;;