This commit is contained in:
2023-04-27 20:45:29 -05:00
parent 1a1b6d75ea
commit 2960acc892
2 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='3.8.136-04232023'
VERS='3.8.137-04232023'
MMFOLDER="/opt/idssys/mediamanager"
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)

View File

@@ -43,6 +43,10 @@ unset IFS
cw_spc=40
MMCRONCHECK(){
[ -f ${MMFOLDER}/mm.stop ] && /usr/local/bin/mm check q >/dev/null 2>&1 || /usr/local/bin/mm check q >> /opt/idssys/mediamanager/logs/outputs.check.log
exit 0
}
MMSTART(){
[ $VERBOSE = true ] && chktmstart=`date +%s`
@@ -1315,6 +1319,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
fi
case $action in
start | check)
[ "${2}" == "cron" ] && MMCRONCHECK
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
if [ "${2}" != "q" ]; then
echo -e "${stopmsg}"