Update mm-scripts.sh

This commit is contained in:
2023-04-23 18:19:17 -05:00
parent 88a6eea5d2
commit bb57c945f8

View File

@@ -260,6 +260,7 @@ MMSTART(){
### CHECK FOR PLEX MOUNT
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
echo "HERE: $files"
if (( ! ${#files} )); then
echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile
umount ${PLEX_MOUNT} >/dev/null 2>&1