diff --git a/mm-scripts.sh b/mm-scripts.sh index 272332e..fbccd96 100755 --- a/mm-scripts.sh +++ b/mm-scripts.sh @@ -269,7 +269,7 @@ MMSTART(){ if [ ! -f ${PLEX_MOUNT}/mounted ]; then if [ -f ${MMFOLDER}/mm.plexmount.fail ]; then fd=$(( `date +%s` - `stat -L --format %Y ${MMFOLDER}/mm.plexmount.fail` )) - if [ ${fd} -gt 3600 ]; then + if [ ${fd} -gt 1 ]; then PMFS=true else PMFS=false @@ -290,7 +290,7 @@ MMSTART(){ else echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}" - SENDNOTICE "Plex Media Mounted" "The Plex Media Folder was successfully re-mounted again!" 1 + SENDNOTICE "Plex Media Mounted" "The Plex Media Folder was successfully re-mounted again!" 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 & @@ -301,7 +301,7 @@ MMSTART(){ echo -e "${idsCL[Green]}Mounted${idsCL[Default]}" if [ -f ${MMFOLDER}/mm.plexmount.fail ] || [ -f ${MMFOLDER}/mm.plexmount.fail2 ]; then echo -e "${idsCL[Green]}Mounted, fixed${idsCL[Default]}" - SENDNOTICE "Plex Media Mounted" "The Plex Media Folder was successfully re-mounted again!" 1 + SENDNOTICE "Plex Media Mounted" "The Plex Media Folder was successfully re-mounted again!" 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 &