Update run.sh
This commit is contained in:
4
run.sh
4
run.sh
@@ -5,7 +5,7 @@ source /opt/idssys/defaults/colors.inc
|
|||||||
|
|
||||||
if [ -f /opt/mm.checking ]; then
|
if [ -f /opt/mm.checking ]; then
|
||||||
fd=$(( `date +%s` - `stat -L --format %Y /opt/mm.checking` ))
|
fd=$(( `date +%s` - `stat -L --format %Y /opt/mm.checking` ))
|
||||||
if [ ${fd} -gt 60 ]; then
|
if [ ${fd} -gt 900 ]; then
|
||||||
rm -f /opt/mm.checking
|
rm -f /opt/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]}"
|
||||||
@@ -67,7 +67,7 @@ if [ ! -f /opt/mm.checking ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
/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}
|
||||||
#rm -f /opt/mm.checking
|
rm -f /opt/mm.checking
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user