update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='3.8.136-04232023'
|
VERS='3.8.137-04232023'
|
||||||
|
|
||||||
MMFOLDER="/opt/idssys/mediamanager"
|
MMFOLDER="/opt/idssys/mediamanager"
|
||||||
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ unset IFS
|
|||||||
|
|
||||||
cw_spc=40
|
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(){
|
MMSTART(){
|
||||||
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
[ $VERBOSE = true ] && chktmstart=`date +%s`
|
||||||
@@ -1315,6 +1319,8 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then
|
|||||||
fi
|
fi
|
||||||
case $action in
|
case $action in
|
||||||
start | check)
|
start | check)
|
||||||
|
[ "${2}" == "cron" ] && MMCRONCHECK
|
||||||
|
|
||||||
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
if [ -f ${MMFOLDER}/mm.stop ] && [ "${action}" == "check" ]; then
|
||||||
if [ "${2}" != "q" ]; then
|
if [ "${2}" != "q" ]; then
|
||||||
echo -e "${stopmsg}"
|
echo -e "${stopmsg}"
|
||||||
|
|||||||
Reference in New Issue
Block a user