PMSHelper.sh 351 B

12345678910111213141516
  1. #!/bin/bash
  2. # Always re-trigger a mount (to fix links if the network changes)
  3. ~/bin/video/mountMedia
  4. # Wait for the media share to be mounted
  5. if ! ~/bin/video/isMediaMounted; then
  6. sleep 5
  7. exit 1
  8. fi
  9. # Kill previous instances
  10. ~/bin/video/pms/killPMS.sh
  11. # Exec
  12. exec '/Applications/Zach/Media/Plex Media Server.app/Contents/MacOS/Plex Media Server'