Update mm-scripts.sh
This commit is contained in:
@@ -279,7 +279,7 @@ MMSTART(){
|
|||||||
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
echo -en "${idsCL[LightCyan]}${msg}${spc} ${idsCL[White]}: ${idsCL[Default]}"
|
||||||
|
|
||||||
### CHECK FOR PLEX MOUNT
|
### 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
|
echo "$(date) - Plex Media Not Mounted, will try and mount" >> $logfile
|
||||||
umount ${PLEX_MOUNT} >/dev/null 2>&1
|
umount ${PLEX_MOUNT} >/dev/null 2>&1
|
||||||
sleep 2s
|
sleep 2s
|
||||||
@@ -320,7 +320,7 @@ MMSTART(){
|
|||||||
done
|
done
|
||||||
rm -f ${MMFOLDER}/mm.plexmount.fail*
|
rm -f ${MMFOLDER}/mm.plexmount.fail*
|
||||||
fi
|
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]}"
|
echo -e "${idsCL[LightCyan]}Skipping check, started wtih VPN only${idsCL[Default]}"
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
|
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
|
||||||
|
|||||||
Reference in New Issue
Block a user