This commit is contained in:
2024-03-20 12:01:55 -05:00
parent 52163a72b2
commit 666c2a1bf4
2 changed files with 7 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='3.9.70-01042024'
VERS='3.9.71-03202024'
MMFOLDER="/opt/idssys/mediamanager"
TMPFOLDER="${MMFOLDER}/.tmp"

7
run.sh
View File

@@ -81,7 +81,12 @@ if ([ "${1}" == "update" ] && [ -z ${2+x} ]) || [ "${1}" == "setup" ] || [ "${1}
fi
if [ "${1}" == "clear" ]; then
[ ! -f ${TMPFOLDER}/mm.stop ] && rm -f ${TMPFOLDER}/mm.* || rm -f ${TMPFOLDER}/mm.*; touch ${TMPFOLDER}/mm.stop
if [ ! -f ${TMPFOLDER}/mm.stop ]; then
rm -f ${TMPFOLDER}/*
else
rm -f ${TMPFOLDER}/*
touch ${TMPFOLDER}/mm.stop
fi
fi
if [ -f ${TMPFOLDER}/mm.stop.checking ]; then
#fd=$(expr $(date +%s) - $(stat -L --format %Y ${TMPFOLDER}/mm.stop.checking))