diff --git a/defaults.inc b/defaults.inc index 39b3764..e1debda 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='3.9.61-10212023' +VERS='3.9.62-11082023' MMFOLDER="/opt/idssys/mediamanager" TMPFOLDER="${MMFOLDER}/.tmp" diff --git a/mm-scripts.sh b/mm-scripts.sh index 8a23d22..9addfd6 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -94,7 +94,8 @@ MMSTART(){ if [ ${GOFORSTART} = true ]; then mmsv='Starting' echo - OUT=$(/bin/ip link | grep "${VPN_INTERFACE}") + OUT=$(/bin/ip link | grep "${VPN_INTERFACE}") + echo "$(date) - ${mmsv} VPN..." >> ${MM_LOGFILE} if [ ${#OUT} = 0 ]; then msg="Setting up the VPN Tunnel config" @@ -127,9 +128,9 @@ MMSTART(){ until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" mmsv='Verifying' + [ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> ${MM_LOGFILE} fi - [ $VERBOSE = true ] && echo "$(date) - ${mmsv} VPN..." >> ${MM_LOGFILE} OUT=$(/bin/ip link | grep "$VPN_INTERFACE") if [ ${#OUT} = 0 ]; then @@ -489,9 +490,9 @@ MMSTART(){ fi rm -f ${TMPFOLDER}/mm.stop* echo -e "${idsCL[Green]}All systems are go!${idsCL[Default]}" - if [ "${1}" = "start" ] || [ "${1}" = "" ]; then - echo "$(date) - Media Management systems started" >> ${MM_LOGFILE} - fi + # if [ "${1}" = "start" ] || [ "${1}" = "" ]; then + echo "$(date) - Media Management systems STARTED" >> ${MM_LOGFILE} + # fi fi echo @@ -581,7 +582,7 @@ MMSTOP(){ rm -f ${TMPFOLDER}/mm.plexmount.fail* rm -f ${TMPFOLDER}/mm.stop.checking - echo "$(date) - Media Management systems stopped" >> ${MM_LOGFILE} + echo "$(date) - Media Management systems STOPPED" >> ${MM_LOGFILE} echo echo -e "${idsCL[Red]}All services have been stopped${idsCL[Default]}"