Update mm-scripts.sh

This commit is contained in:
2023-04-27 14:48:16 -05:00
parent 30c9942974
commit 469927bda1

View File

@@ -279,7 +279,7 @@ MMSTART(){
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
### CHECK FOR PLEX MOUNT
if [ ! -f ${PLEX_MOUNT}/mounted ] && [ "${2}" != "vpn" ]; then
if [ ! -f ${PLEX_MOUNT}/mounted ] && [ "${2}" != "vpn" ] && [ ! -f ${PLEX_MOUNT}/mm.noservices ]; then
echo "$(date) - Plex Media Not Mounted, will try and mount" >> $logfile
umount ${PLEX_MOUNT} >/dev/null 2>&1
sleep 2s
@@ -320,7 +320,7 @@ MMSTART(){
done
rm -f ${MMFOLDER}/mm.plexmount.fail*
fi
elif [ "${2}" == "vpn" ]; then
elif [ "${2}" == "vpn" ] || [ -f ${PLEX_MOUNT}/mm.noservices ]; then
echo -e "${idsCL[LightCyan]}Skipping check, started wtih VPN only${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"