Skip to content

cowboy/synology-update-plex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

synology-update-plex

Script to Auto Update Plex Media Server on Synology NAS

Latest Release Test Donate

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 latest release update-plex.sh script somewhere and set it as executable:

$ ssh you@IP_OF_YOUR_NAS
you@yournas:~$ wget "https://github.com/cowboy/synology-update-plex/releases/latest/download/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

Caveats

  • Be careful when SSHing into your NAS. I'm not responsible if you break anything!
  • This script may contain bugs. I'm not responsible if it breaks anything!
  • This script has been tested on a Synology DS918+ NAS running DSM 7. It should work with other Synology NAS models.
  • This script assumes Plex was installed manually from https://www.plex.tv/media-server-downloads/.
  • This script sends "Plex Media Server" notifications as "Package Center" because it's simpler than doing it any other way.

Common Issues

  • If the script is trying to download the wrong release file for your NAS, please see the comments at the top of the get_arch test suite.
  • If the script fails with Unable to find "Plex Media Server" directory when --plex-pass is specified, you may need to manually change /volume* in the script to your volume's root path.
  • If the script fails with error = [289] while installing package, add Plex as a trusted publisher for package installations.

If you find a bug or an issue not listed here, please file an issue or create a pull request. Explain the situation and include all script output.

References

Adapted from work first published at:

Including 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.