Update mm-scripts.sh
This commit is contained in:
@@ -57,12 +57,12 @@ MMCRONCHECK(){
|
|||||||
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vers.info)) -ge 600 ]; then
|
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vers.info)) -ge 600 ]; then
|
||||||
/usr/local/bin/mm update-allservices >/dev/null 2>&1
|
/usr/local/bin/mm update-allservices >/dev/null 2>&1
|
||||||
echo "$(date) - Updated All Services" >> $logfile
|
echo "$(date) - Updated All Services" >> $logfile
|
||||||
}
|
fi
|
||||||
elif [ $(date +%H)$(date +%M) -ge 0300 ] && [ $(date +%H)$(date +%M) -le 0305 ] ; then
|
elif [ $(date +%H)$(date +%M) -ge 0300 ] && [ $(date +%H)$(date +%M) -le 0305 ] ; then
|
||||||
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/.git/index)) -ge 600 ]; then
|
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/.git/index)) -ge 600 ]; then
|
||||||
/usr/local/bin/mm update-allservices >/dev/null 2>&1
|
/usr/local/bin/mm update-allservices >/dev/null 2>&1
|
||||||
echo "$(date) - Updated MM Scripts" >> $logfile
|
echo "$(date) - Updated MM Scripts" >> $logfile
|
||||||
}
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user