Update mm-scripts.sh
This commit is contained in:
@@ -55,7 +55,7 @@ MMCRONCHECK(){
|
||||
else
|
||||
echo "not updating"
|
||||
fi
|
||||
if [ $(date +%u) -eq 5 ] && [ $(date +%H)$(date +%M) -ge 1925 ] && [ $(date +%H)$(date +%M) -le 1930 ] ; then
|
||||
elif [ $(date +%u) -eq 5 ] && [ $(date +%H)$(date +%M) -ge 1925 ] && [ $(date +%H)$(date +%M) -le 1930 ] ; then
|
||||
# elif [ $(date +%H)$(date +%u) -eq 3 ] && [ $(date +%H)$(date +%M) -ge 0300 ] && [ $(date +%H)$(date +%M) -lt 0305 ] ; then
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user