From 2dcfe4b137e58698a4a370e56cc95b06612faf06 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 13:59:44 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- mm-scripts.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/defaults.inc b/defaults.inc index dd3c383..c5c9a42 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,6 +1,6 @@ #!/usr/bin/env bash -VERS='3.8.124-04232023' +VERS='3.8.125-04232023' MMFOLDER="/opt/idssys/mediamanager" MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) diff --git a/mm-scripts.sh b/mm-scripts.sh index 1936e5a..c920454 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -304,9 +304,11 @@ MMSTART(){ echo "$(date) - Plex Media could not be mounted" >> $logfile fi echo -e "${idsCL[Red]}Not Mounted${idsCL[Default]}" - for srvc in "${SERVICES_CHECK[@]}"; do - /bin/systemctl stop ${srvc} >/dev/null 2>&1 & - done + if [ ! -f ${MMFOLDER}/mm.noservices ]; then + for srvc in "${SERVICES_CHECK[@]}"; do + /bin/systemctl stop ${srvc} >/dev/null 2>&1 & + done + fi else echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}"