Sfoglia il codice sorgente

Always attempt a re-mount, in case the network changes

Zachary Kotlarek 12 anni fa
parent
commit
ae3b19f56e
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      plexMonitor/plexHelper.sh

+ 3 - 1
plexMonitor/plexHelper.sh

@@ -1,8 +1,10 @@
 #!/bin/bash
 #!/bin/bash
 
 
+# Always re-trigger a mount (to fix links if the network changes)
+~/bin/video/mountMedia
+
 # Wait for the media share to be mounted
 # Wait for the media share to be mounted
 if ! ~/bin/video/isMediaMounted; then
 if ! ~/bin/video/isMediaMounted; then
-	~/bin/video/mountMedia
 	sleep 5
 	sleep 5
 	exit 1
 	exit 1
 fi
 fi