Update mm-scripts.sh

This commit is contained in:
2023-04-21 18:53:25 -05:00
parent 3503d71ad8
commit 22d4d4d984

View File

@@ -639,12 +639,17 @@ MMSTATUS(){
fi
### CHECK FOR PLEX MOUNT
msg=" |- ${idsCL[Default]}Verifying Plex Media Mount"
c=0; spc=''; spc1=$((${cw_spc}-${#msg}+6))
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en "${idsCL[White]}${msg}${spc}${idsCL[White]} : ${idsCL[Default]}"
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]}"
echo -e "${idsCL[Red]}Not Mounted, running services as chosen previously${idsCL[Default]}"
else
echo -e "${idsCL[Green]}Mounted${idsCL[Default]}"