diff --git a/defaults.inc b/defaults.inc index 0884a19..78b0f00 100755 --- a/defaults.inc +++ b/defaults.inc @@ -125,9 +125,11 @@ DEBUGLOGSTOP(){ MMUPDATECHECK(){ if curl -m 15 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then - cd ${MMFOLDER} + cd /opt/idssys/mediamanager if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then touch ${TMPFOLDER}/update.available + else + /bin/rm -f ${TMPFOLDER}/update.available fi else /bin/rm -f ${TMPFOLDER}/update.available