Update mm-scripts.sh

This commit is contained in:
2023-04-23 18:43:57 -05:00
parent f40876c746
commit 3b9fb68e23

View File

@@ -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 1 ]; then
if [ ${fd} -gt 3600 ]; then
PMFS=true
else
PMFS=false
@@ -278,7 +278,7 @@ MMSTART(){
PMFS=true
fi
if [ "${EMAIL_NOTICE}" != "" ] && [ ${PMFS} = true ]; then
if [ ${PMFS} = true ]; then
SENDNOTICE "Plex Media Not Mounted" "Could not mount the Plex Media Folder" 1
echo "$(date) - Plex Media could not be mounted" >> $logfile
fi