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