update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='3.8.125-04232023'
|
VERS='3.8.128-04232023'
|
||||||
|
|
||||||
MMFOLDER="/opt/idssys/mediamanager"
|
MMFOLDER="/opt/idssys/mediamanager"
|
||||||
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
MMSRV=$(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1)
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ MMSTART(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${PMFS} = true ]; then
|
if [ ${PMFS} = true ]; then
|
||||||
touch ${MMFOLDER}/mm.plexmount.fail
|
[ -f "${MMFOLDER}/mm.plexmount.fail2" ] && touch ${MMFOLDER}/mm.plexmount.fail2 || touch ${MMFOLDER}/mm.plexmount.fail
|
||||||
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
|
||||||
@@ -307,10 +307,8 @@ MMSTART(){
|
|||||||
for srvc in "${SERVICES_CHECK[@]}"; do
|
for srvc in "${SERVICES_CHECK[@]}"; do
|
||||||
/bin/systemctl stop ${srvc} >/dev/null 2>&1 &
|
/bin/systemctl stop ${srvc} >/dev/null 2>&1 &
|
||||||
done
|
done
|
||||||
|
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[Red]}Not Mounted, running services as chosen previously though${idsCL[Default]}"
|
echo -e "${idsCL[Red]}Not Mounted, running services as chosen previously though${idsCL[Default]}"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user