Update run.sh

This commit is contained in:
2023-02-25 16:53:41 -06:00
parent 5119405dc7
commit a966061632

26
run.sh
View File

@@ -56,21 +56,23 @@ if [ "${1}" == "update" ]; then
else
echo -e "${idsCL[Red]}Could not connect to 'git.schroedercity.com' for updates${idsCL[Default]}"
fi
fi
if [ -f /opt/idssys/mediamanager/mm.checking ]; then
fd=$(( `date +%s` - `stat -L --format %Y /opt/idssys/mediamanager/mm.checking` ))
if [ ${fd} -gt 900 ]; then
rm -f /opt/idssys/mediamanager/mm.checking
else
echo -e "${idsCL[LightCyan]}Try again later, 'mm' program currently in use...${idsCL[Default]}"
else
if [ -f /opt/idssys/mediamanager/mm.checking ]; then
fd=$(( `date +%s` - `stat -L --format %Y /opt/idssys/mediamanager/mm.checking` ))
if [ ${fd} -gt 900 ]; then
rm -f /opt/idssys/mediamanager/mm.checking
else
echo -e "${idsCL[LightCyan]}Try again later, 'mm' program currently in use...${idsCL[Default]}"
fi
fi
fi
if [ ! -f /opt/idssys/mediamanager/mm.checking ]; then
touch /opt/idssys/mediamanager/mm.checking
/opt/idssys/mediamanager/mm-scripts.sh ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}
if [ ! -f /opt/idssys/mediamanager/mm.checking ]; then
touch /opt/idssys/mediamanager/mm.checking
/opt/idssys/mediamanager/mm-scripts.sh ${1} ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} ${10} ${11} ${12} ${13} ${14}
fi
fi
exit 0