Update mm-scripts.sh

This commit is contained in:
2023-04-29 23:34:51 -05:00
parent 880c61f852
commit ff8c5979f6

View File

@@ -55,12 +55,12 @@ MMCRONCHECK(){
# if [ $(date +%H)$(date +%u) -eq 4 ] && [ $(date +%H)$(date +%M) -ge 0400 ] && [ $(date +%H)$(date +%M) -le 0405 ] ; then
if [ $(date +%H)$(date +%u) -eq 7 ] && [ $(date +%H)$(date +%M) -ge 0400 ] && [ $(date +%H)$(date +%M) -le 0405 ] ; 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 q >/dev/null 2>&1
echo "$(date) - Updated All Services" >> $logfile
fi
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
/usr/local/bin/mm update-allservices >/dev/null 2>&1
/usr/local/bin/mm update q >/dev/null 2>&1
echo "$(date) - Updated MM Scripts to v${VERS}" >> $logfile
fi
fi