From f39d452ce00cd41760232b9862b1de6469758d6d Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 21 Apr 2023 18:56:30 -0500 Subject: [PATCH] Update mm-scripts.sh --- mm-scripts.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm-scripts.sh b/mm-scripts.sh index d91e0f5..93b84c5 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -308,7 +308,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf else echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}" - rm -f ${MMFOLDER}/mm.plexmount.fail + rm -f ${MMFOLDER}/mm.plexmount.fail* echo "$(date) - Plex Media now mounted, stopping services to restart them" >> $logfile for srvc in "${SERVICES_CHECK[@]}"; do /bin/systemctl stop ${srvc} >/dev/null 2>&1 & @@ -320,14 +320,14 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf else echo -e "${idsCL[Green]}Mounted${idsCL[Default]}" - rm -f ${MMFOLDER}/mm.plexmount.fail + rm -f ${MMFOLDER}/mm.plexmount.fail* fi if [ -f ${MMFOLDER}/mm.plexmount.fail ] && [ "${1}" == "start" ]; then read -n 1 -p "Would you like to start services without Plex Media being mounted? (y/N): " choice case "$choice" in [Yy]) - rm -f ${MMFOLDER}/mm.plexmount.fail + rm -f ${MMFOLDER}/mm.plexmount.fail* touch ${MMFOLDER}/mm.plexmount.fail2 echo ;;