This commit is contained in:
2023-11-08 13:19:34 -06:00
parent a268436cb1
commit e3d8756c6d
2 changed files with 8 additions and 7 deletions

View File

@@ -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"

View File

@@ -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]}"