Skip to content

Script to Auto Update Plex Media Server on Synology NAS

Notifications You must be signed in to change notification settings

Animizio/synology-update-plex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 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. It should work with other Synology NAS models.
  • This script assumes Plex was installed manually from https://www.plex.tv/media-server-downloads/.

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:

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%