Skip to content

Update Script for Systemd

delphiactual edited this page Sep 25, 2016 · 10 revisions

Systemd (Ubuntu based distros)

Create the PlexRequests update script

nano ~/update_pr.sh

Paste in the following code (right click if using terminal)

#!/bin/dash
curl -sL http://git.io/viA9C | grep -Po '(?<="browser_download_url": ")(.+\.zip)' | xargs wget --quiet -O PlexRequests.zip
sudo systemctl stop plexrequests.service
sudo unzip -o -q PlexRequests.zip -d /opt/PlexRequests
sudo systemctl start plexrequests.service
rm -f PlexRequests.zip

Press Ctrl+X then y to save (assuming you're using nano).

Make it executable

chmod +x ~\update_pr.sh 

When an update is provided for PlexRequests simply run

./update_pr.sh

Clone this wiki locally