This is a heavily modified fork of Martino’s initial work as outlined here: Script to Auto Update Plex on Synology nas [rev6]
Look at or download the code from the GitHub project page: https://github.com/michealespinola/syno.plexupdate
Description:
This script takes into account many if not all of the issues I have previously read about for automatically updating Plex on the Synology NAS platform. This heavily modifed fork of this script intends to further simplify its use to not require any Bash script variable editing or SSH access to the Synology NAS. Everything should be accomplishable via the most basic DSM web administration by dropping this script onto the NAS and configuring a scheduled Task. This script is specifically for the official Synology package of the Plex Media Server. It utilizes Synology’s built-in tools to self-determine everything it needs to know about where Plex is located, how to update it, and to notify the system of updates or failures to update. If Plex is installed and properly configured, you will not have to edit this script for any details about the installation location of Plex. Public or Beta Update Channel selection follows what you have configured in Plex Media Server general settings.
Although only tested on my DS1019+, this script has been written with the intent to work on any compatible Synology platform. It reads your hardware architecture from the system and matches it against what it compatible with Plex. If its a part of the official Plex public or beta channel, this script will update it.
The default yet modifiable settings are that the script will not install an update unless it is 7 days old. This is a stability safety-catch so that if a release has a bug, it is assumed it will be discovered and fixed within 7 days. Otherwise, it keeps installation packages in its “Updates” directory for 60 days before automatic deletion.
Instructions for installation and use are in the GitHub README. The following are example outputs from running the script:
Not running as root:
admin@SYNOLOGY:~$ bash /var/services/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh
SYNO.PLEX UPDATER SCRIPT v2.3.0
This script MUST be run as root - exiting...
Running as root:
admin@SYNOLOGY:~$ sudo -i
Password:
root@SYNOLOGY:~# bash /var/services/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh
SYNO.PLEX UPDATER SCRIPT v2.3.0
Synology: DS1019+ (x86_64), DSM 6.2.3-25426 Update 2
Script Dir: /var/services/homes/admin/scripts/bash/plex/syno.plexupdate
Plex Dir: /volume1/Plex/Library/Application Support/Plex Media Server
Running Ver: 1.20.0.3181-0800642ec
Update Ver: 1.19.5.3112-b23ab3896 (Public Channel)
Release Date: Mon, 20 Jul 2020 03:40:01 -0700
No new version found.
Not running with minimum requirement DSM 5.0 or higher:
root@SYNOLOGY:~$ bash /var/services/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh
SYNO.PLEX UPDATER SCRIPT v2.3.0
Plex Media Server requires DSM 5.0 minimum to install - exiting...
Processing no new version:
root@SYNOLOGY:~# bash /var/services/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh
SYNO.PLEX UPDATER SCRIPT v2.3.0
Synology: DS1019+ (x86_64), DSM 6.2.3-25426 Update 2
Script Dir: /var/services/homes/admin/scripts/bash/plex/syno.plexupdate
Plex Dir: /volume1/Plex/Library/Application Support/Plex Media Server
Running Ver: 1.20.0.3181-0800642ec
Update Ver: 1.19.5.3112-b23ab3896 (Public Channel)
Release Date: Mon, 20 Jul 2020 03:40:01 -0700
No new version found.
Processing a new update that meets minimum age requirement:
root@SYNOLOGY:~# bash /var/services/homes/admin/scripts/bash/plex/syno.plexupdate/syno.plexupdate.sh
SYNO.PLEX UPDATER SCRIPT v2.3.0
Synology: DS1019+ (x86_64), DSM 6.2.3-25426 Update 2
Script Dir: /var/services/homes/admin/scripts/bash/plex/syno.plexupdate
Plex Dir: /volume1/Plex/Library/Application Support/Plex Media Server
Running Ver: 1.20.0.3133-fede5bdc7
Update Ver: 1.20.0.3181-0800642ec (Beta Channel)
Release Date: Tue, 04 Aug 2020 11:40:58 -0700
Newer version found!
New Package: PlexMediaServer-1.20.0.3181-0800642ec-x86_64.spk
Package Age: 9 days (7 required for install)
INSTALLING NEW PACKAGE:
----------------------------------------
package Plex Media Server stop successfully
/volume1/Plex/Library/Application Support/Plex Media Server/Updates/PlexMediaServer-1.20.0.3181-0800642ec-x86_64.spk install successfully
package Plex Media Server start successfully
----------------------------------------
Update from: 1.20.0.3133-fede5bdc7
to: 1.20.0.3181-0800642ec succeeded!
Alternate response if the update does not meet minimum age requirement:
"Update newer than 7 days - skipping..."
Any and all constructive feedback is greatly appreciated. It’s been a long time since I’ve worked with bash, so this has been a fun project.

?
I had thought I adequately trapped for an unrecognized channel value, but I guess I have to rethink what I did. You make a good point about defaulting to Public channel - there really is no reason not to do that. It is the actual default after all.