This commit is contained in:
2023-05-03 21:32:07 -05:00
parent a6ba65260b
commit 0b76804649
3 changed files with 107 additions and 105 deletions

View File

@@ -1,8 +1,10 @@
#!/usr/bin/env bash
VERS='3.8.209-05022023'
VERS='3.8.210-05022023'
MMFOLDER="/opt/idssys/mediamanager"
TMPFOLDER="${MMFOLDER}/.tmp"
[ ! -d ${TMPFOLDER} ] && mkdir ${TMPFOLDER}
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
AVAILSERVICES=bazarr,jackett,lidarr,ombi,qbittorrent,radarr,radarr3d,sonarr,snap.tautulli.tautulli
@@ -101,10 +103,10 @@ MMUPDATECHECK(){
if curl -m 15 -s --head --request GET https://git.schroedercity.com | grep "HTTP/2 200" > /dev/null; then
cd ${MMFOLDER}
if [ "`git log --pretty=%H ...refs/heads/master^ | head -n 1`" != "`git ls-remote origin -h refs/heads/master |cut -f1`" ]; then
touch ${MMFOLDER}/update.available
touch ${TMPFOLDER}/update.available
fi
else
/bin/rm -f ${MMFOLDER}/update.available
/bin/rm -f ${TMPFOLDER}/update.available
fi
}