-
Notifications
You must be signed in to change notification settings - Fork 145
Manually installing plexupdate
git clone https://github.com/mrworf/plexupdate.git
Note that git is required (sudo apt-get install git
)
This is the recommended way to install plexupdate. Using git allows you to know when a new version is available as well allowing plexupdate to keep itself up to date (with the AUTOUPDATE option).
Download it as a zip file and unzip it on your server.
wget https://github.com/mrworf/plexupdate/archive/master.zip && unzip master.zip && mv plexupdate-master plexupdate && rm master.zip
Note that unzip is required (sudo apt-get install unzip
).
You might be more interested in running this on a regular basis. To accomplish this, we need to do the following. Locate the extras
folder which was included with plexupdate. In this folder you'll find cronwrapper
. You need to "symlink" this into /etc/cron.daily/
. Symlink means we tell the system that there should be reference/link to the file included in plexupdate. By not copying, we will automatically get updates to the cronwrapper
when we update plexupdate.
When doing the symlink, it's important to provide the complete path to the file in question, so you will need to edit the path to it in the following snippet. Also, we need to run as root, since only root is allowed to edit files under /etc
.
sudo ln -s /home/john/plexupdate/extras/cronwrapper /etc/cron.daily/plexupdate
We also need to tell cronwrapper where to find plexupdate, again, this needs to be done as root for the same reasons as above.
sudo nano -w /etc/plexupdate.cron.conf
In the new file, we simply point out the location of plexupdate.sh
and plexupdate.conf
SCRIPT=/home/john/plexupdate/plexupdate.sh
CONF=/home/john/plexupdate.conf
If you've installed it somewhere else and/or the path to the config is somewhere else, please make sure to write the correct paths.
Almost done. Final step is to make plexupdate.sh
a bit smarter and have it install the newly downloaded version, so open the plexupdate.conf
file you created previously and add the following:
AUTOINSTALL=yes
AUTODELETE=yes
This tells plexupdate.sh
to install the file once downloaded and delete it when done, keeping your server nice and clean.