Update mm-scripts.sh

This commit is contained in:
voltron committed 2023-04-21 18:52:17 -05:00
1 parent 3df3c7fffb
commit 3503d71ad8
1 file changed
+13
+13
View File
@@ -638,6 +638,19 @@ MMSTATUS(){
fi
fi
### CHECK FOR PLEX MOUNT
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
if (( ! ${#files} )) && [ ! -f ${MMFOLDER}/mm.plexmount.fail2 ]; then
echo -e "${idsCL[Red]}Not Mounted${idsCL[Default]}"
elif [ -f ${MMFOLDER}/mm.plexmount.fail2 ]; then
echo -e "${idsCL[Red]}Not Mounted, but running services anyway as chosen previously${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"
rm -f ${MMFOLDER}/mm.plexmount.fail*
fi
echo