Update mm-scripts.sh

This commit is contained in:
2023-04-27 14:46:50 -05:00
parent 768dfb0d35
commit 30c9942974

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 ]; then
if [ ! -f ${PLEX_MOUNT}/mounted ] && [ "${2}" != "vpn" ]; then
echo "$(date) - Plex Media Not Mounted, will try and mount" >> $logfile
umount ${PLEX_MOUNT} >/dev/null 2>&1
sleep 2s
@@ -320,6 +320,8 @@ MMSTART(){
done
rm -f ${MMFOLDER}/mm.plexmount.fail*
fi
elif [ "${2}" == "vpn" ]; then
echo -e "${idsCL[LightCyan]}Skipping check, started wtih VPN only${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
if [ -f ${MMFOLDER}/mm.plexmount.fail ]; then
@@ -414,6 +416,8 @@ MMSTART(){
echo -e "${idsCL[Green]}Done${idsCL[Default]}"
elif [ -f ${MMFOLDER}/mm.noservices ]; then
echo -e "${idsCL[LightCyan]}Skipping ${mmsv} Services, started wtih VPN only${idsCL[Default]}"
else
echo -e "${idsCL[LightYellow]}Skipping ${mmsv} Services ${idsCL[Default]}"
fi