Update mm-scripts.sh
This commit is contained in:
@@ -53,13 +53,13 @@ MMCRONCHECK(){
|
||||
fi
|
||||
|
||||
# if [ $(date +%H)$(date +%u) -eq 4 ] && [ $(date +%H)$(date +%M) -ge 0400 ] && [ $(date +%H)$(date +%M) -le 0405 ] ; then
|
||||
if [ $(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
|
||||
if [ $(date +%H)$(date +%M) -ge 0400 ] && [ $(date +%H)$(date +%M) -lt 0405 ] ; then
|
||||
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/vers.info)) -gt 600 ]; then
|
||||
/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
|
||||
elif [ $(date +%H)$(date +%M) -ge 0300 ] && [ $(date +%H)$(date +%M) -lt 0305 ] ; then
|
||||
if [ $(expr `date +%s` - $(stat -c %Y ${MMFOLDER}/.git/index)) -gt 600 ]; then
|
||||
/usr/local/bin/mm update q >/dev/null 2>&1
|
||||
echo "$(date) - Updated MM Scripts to v${VERS}" >> $logfile
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user