Update defaults.inc

This commit is contained in:
2024-09-30 16:58:58 -05:00
parent c5cceff01a
commit 006563cae5

View File

@@ -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