From f6734a35db428ddd7b1aadb6ededb688186ea76d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 26 Feb 2023 22:26:17 -0600 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index 12b9a3f..5f8d2f5 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -244,7 +244,9 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf if (( ! ${#files} )); then echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile umount ${PLEX_MOUNT} + sleep 2s mount -a + sleep 2s files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*) if (( ! ${#files} )); then @@ -271,6 +273,8 @@ PersistentKeepalive = 25" >> /etc/wireguard/wg-torguard.conf /bin/systemctl stop ${srvc} done fi + else + rm -f ${MMFOLDER}/mm.plexmount.fail fi [ "${1}" == "start" ] && rm -f ${MMFOLDER}/mm.noservices @@ -563,7 +567,7 @@ if [ ! -f ${MMFOLDER}/mm.update.stop ]; then echo -e " ${idsCL[Yellow]}restart${idsCL[Default]} --> Restart services" echo -e " ${idsCL[Yellow]}status${idsCL[Default]} --> View VPN and service status" echo - echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job to maintain VPN and services, run */1 min)" + echo -e " ${idsCL[Yellow]}check${idsCL[Default]} --> Crontab job for maintaining VPN & Media-Services (run */1 min)" echo -e " ${idsCL[Yellow]}clear${idsCL[Default]} --> Clear all tmp files" echo -e " ${idsCL[Yellow]}update${idsCL[Default]} --> Check for and install new updates" echo ""