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