new file location

This commit is contained in:
2023-01-01 11:30:25 -06:00
parent ca025aa280
commit d33e37c37e
2 changed files with 34 additions and 34 deletions

12
run.sh
View File

@@ -3,16 +3,16 @@
source /opt/idssys/defaults/colors.inc
if [ -f /opt/mm.checking ]; then
fd=$(( `date +%s` - `stat -L --format %Y /opt/mm.checking` ))
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/mm.checking
rm -f /opt/idssys/mediamanager/mm.checking
else
echo -e "${idsCL[LightCyan]}Try again later, 'mm' program currently in use...${idsCL[Default]}"
fi
fi
if [ ! -f /opt/mm.checking ]; then
touch /opt/mm.checking
if [ ! -f /opt/idssys/mediamanager/mm.checking ]; then
touch /opt/idssys/mediamanager/mm.checking
source /opt/idssys/defaults/default.inc
source /opt/idssys/mediamanager/defaults.inc
@@ -71,7 +71,7 @@ if [ ! -f /opt/mm.checking ]; then
fi
fi
/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/idssys/mediamanager/mm.checking
fi
exit 0