From 32549275e60692141e5fc8e3fadaf2943762bab9 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 27 Apr 2023 14:17:58 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index fdb864b..854ea56 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -299,15 +299,19 @@ MMSTART(){ fi if [ ${PMFS} = true ]; then - touch ${MMFOLDER}/mm.plexmount.fail + [ ! -f ${MMFOLDER}/mm.plexmount.fail2 ] && touch ${MMFOLDER}/mm.plexmount.fail SENDNOTICE "Plex Media Not Mounted" "Could not mount the Plex Media Folder" 1 echo "$(date) - Plex Media could not be mounted" >> $logfile fi - echo -e "${idsCL[Red]}Not Mounted${idsCL[Default]}" if [ ! -f ${MMFOLDER}/mm.plexmount.fail2 ]; then + echo -e "${idsCL[Red]}Not Mounted${idsCL[Default]}" for srvc in "${SERVICES_CHECK[@]}"; do /bin/systemctl stop ${srvc} >/dev/null 2>&1 & done + + else + echo -e "${idsCL[Red]}Not Mounted, running services as chosen previously though${idsCL[Default]}" + fi else