This is a guide to enable auto-updating Plex Media Server on QNAP servers
- Follow instructions on how to add QnapClub repo to your server.
- Locate
jq
in the QnapClub app store and install it
- Download the
qnap-plex-auto-updater.sh
script onto your QNAP server. For this example, I've placed my script in/share/homes/user/scripts/qnap-plex-auto-updater.sh
- Confirm your plex preferences are stored at
/share/PlexData/Plex\ Media\ Server/Preferences.xml
. If they're not, you'll need to update the location in the script. - Run
chmod +x /share/homes/user/scripts/qnap-plex-auto-updater.sh
so your script can be executed - Try running the script to ensure it works:
/share/homes/user/scripts/qnap-plex-auto-updater.sh
- Edit you crontab by opening
/etc/config/crontab
directly in your text editor (e.g.vi
ornano
) - Add the following line
0 5 * * * /share/homes/user/scripts/qnap-plex-auto-updater.sh
- Save the file
- Restart the crontab daemon:
crontab /etc/config/crontab && /etc/init.d/crond.sh restart
- Confirm the auto-updater is scheduled by locating the entry after running
crontab -l
Note: My schedule has it checking for updates everyday at 5am. It's up to you when and how often you want to run it.
For more detailed instructions, please visit the QNAP Wiki.
- Thanks to
fedepesca
for sharing his script on reddit. - Thanks to @martinorob for sharing how to enable plex pass channel / betas: martinorob/plexupdate