Update mm-scripts.sh
This commit is contained in:
@@ -286,7 +286,7 @@ PersistentKeepalive = 25" >> /etc/wireguard/${VPN_INTERFACE}.conf
|
||||
|
||||
### CHECK FOR PLEX MOUNT
|
||||
files=$(shopt -s nullglob dotglob; echo ${PLEX_MOUNT}/*)
|
||||
if (( ! ${#files} )); then
|
||||
if (( ! ${#files} )) && ([ ! -f ${MMFOLDER}/mm.plexmount.fail2 ] || [ "${1}" == "start" ]); then
|
||||
echo "$(date) - Plex Media Not Mounted, will try and fix" >> $logfile
|
||||
umount ${PLEX_MOUNT} >/dev/null 2>&1
|
||||
sleep 2s
|
||||
|
||||
Reference in New Issue
Block a user