Skip to content

Instantly share code, notes, and snippets.

@milnak
Created February 1, 2024 00:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milnak/514becee3bdacd7dfbbefc17189f0ad8 to your computer and use it in GitHub Desktop.
Save milnak/514becee3bdacd7dfbbefc17189f0ad8 to your computer and use it in GitHub Desktop.
Simple script to update plex
#!/bin/bash
set -e
echo 'Enter Plex update URL:'
echo 'e.g. https://plex.tv/downloads/latest/5?channel=16&build=linux-x86_64&distro=debian'
read -r url
wget --output-document=plex.deb --continue "${url}"
sudo dpkg -i plex.deb
sudo systemctl --no-pager status plexmediaserver
rm plex.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment