Update run.sh
This commit is contained in:
26
run.sh
26
run.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user