Update mm-scripts.sh

This commit is contained in:
2023-04-27 14:17:58 -05:00
parent 5ee876ab24
commit 32549275e6

View File

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