Update mm-scripts.sh
This commit is contained in:
@@ -269,7 +269,7 @@ MMSTART(){
|
|||||||
if [ ! -f ${PLEX_MOUNT}/mounted ]; then
|
if [ ! -f ${PLEX_MOUNT}/mounted ]; then
|
||||||
if [ -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
if [ -f ${MMFOLDER}/mm.plexmount.fail ]; then
|
||||||
fd=$(( `date +%s` - `stat -L --format %Y ${MMFOLDER}/mm.plexmount.fail` ))
|
fd=$(( `date +%s` - `stat -L --format %Y ${MMFOLDER}/mm.plexmount.fail` ))
|
||||||
if [ ${fd} -gt 1 ]; then
|
if [ ${fd} -gt 3600 ]; then
|
||||||
PMFS=true
|
PMFS=true
|
||||||
else
|
else
|
||||||
PMFS=false
|
PMFS=false
|
||||||
@@ -278,7 +278,7 @@ MMSTART(){
|
|||||||
PMFS=true
|
PMFS=true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${EMAIL_NOTICE}" != "" ] && [ ${PMFS} = true ]; then
|
if [ ${PMFS} = true ]; then
|
||||||
SENDNOTICE "Plex Media Not Mounted" "Could not mount the Plex Media Folder" 1
|
SENDNOTICE "Plex Media Not Mounted" "Could not mount the Plex Media Folder" 1
|
||||||
echo "$(date) - Plex Media could not be mounted" >> $logfile
|
echo "$(date) - Plex Media could not be mounted" >> $logfile
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user