From 30c9942974c7da76b83162c768bcca19c51980bb Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 14:46:50 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index e8c4418..53dbb13 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -279,7 +279,7 @@ MMSTART(){ echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}" ### CHECK FOR PLEX MOUNT - if [ ! -f ${PLEX_MOUNT}/mounted ]; then + if [ ! -f ${PLEX_MOUNT}/mounted ] && [ "${2}" != "vpn" ]; then echo "$(date) - Plex Media Not Mounted, will try and mount" >> $logfile umount ${PLEX_MOUNT} >/dev/null 2>&1 sleep 2s @@ -320,6 +320,8 @@ MMSTART(){ done rm -f ${MMFOLDER}/mm.plexmount.fail* fi + elif [ "${2}" == "vpn" ]; then + echo -e "${idsCL[LightCyan]}Skipping check, started wtih VPN only${idsCL[Default]}" else echo -e "${idsCL[Green]}Mounted${idsCL[Default]}" if [ -f ${MMFOLDER}/mm.plexmount.fail ]; then @@ -414,6 +416,8 @@ MMSTART(){ echo -e "${idsCL[Green]}Done${idsCL[Default]}" + elif [ -f ${MMFOLDER}/mm.noservices ]; then + echo -e "${idsCL[LightCyan]}Skipping ${mmsv} Services, started wtih VPN only${idsCL[Default]}" else echo -e "${idsCL[LightYellow]}Skipping ${mmsv} Services ${idsCL[Default]}" fi