jpartain89 / synology-update-plex

Script to Auto Update Plex Media Server on Synology NAS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

synology-update-plex

Script to Auto Update Plex Media Server on Synology NAS

Goals

  • Make the echoed messages super clear
  • Make the version checking logic as smart as possible
  • Ensure the script fails if there are any errors
  • Ensure temp files are cleaned up properly
  • Write bash code as idiomatically as possible
  • Attempt to find the "Plex Media Server" directory that contains Preferences.xml efficiently
  • Attempt to support all Synology NAS architectures

Usage

First, SSH into your NAS, save the update-plex.sh script somewhere and set it as executable:

$ ssh you@IP_OF_YOUR_NAS
you@yournas:~$ wget "https://raw.githubusercontent.com/cowboy/synology-update-plex/master/update-plex.sh"
you@yournas:~$ chmod a+x update-plex.sh

Then, create a Scheduled Task with a User-defined script in the Synology DSM Control Panel:

  • Ensure the User is root
  • Ensure the Run command is /path/to/update-plex.sh
  • Add the --plex-pass option (eg. /path/to/update-plex.sh --plex-pass) if you have Plex Pass and want to enable early access / beta releases

Notes

References

Adapted from work first published at:

Inlcuding other update scripts such as:

License

CC0

To the extent possible under law, Ben Alman has waived all copyright and related or neighboring rights to this work.

About

Script to Auto Update Plex Media Server on Synology NAS


Languages

Language:Shell 100.0%