PMS_Updated allows you to update the FreeNAS Plex install from CLI with out waiting for the plugin updates from the devs, the updater will connect to your specified jail, download the most recent version of Plex and run the update if needed.
To do so, first we need to either access our FreeNAS console, or login via SSH. (for Windows users, check out Putty)
Once logged into your FreeNAS server, you want to determine what Jail number your Plex server is installed in, to do so execute the following
You will get an output of Jails installed, choose your Plex Server. In this example mine is 1.
Our next line with log into that Jail to update Plex, so be sure to use the number from the jls command above.
jexec 1 csh
The first time you run this, you may need to install the following.
pkg install ca_root_nss pkg install wget pkg install perl5
Once in the Jail, we can download the PMS_Update script
fetch -o PMS_Updater.sh https://raw.githubusercontent.com/mstinaff/PMS_Updater/master/PMS_Updater.sh
Or for PlexPass use
fetch -o PMS_Updater.sh https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh
After the appropriate updater is downloaded, make sure to modify the permissions for the file to execute correctly.
chmod 755 PMS_Updater.sh
And then execute the script.
./PMS_Updater.sh -vv -a
You should now be on the latest version of Plex, you may need to start your Plex Server in the FreeNAS plugins page.
For a list of known issues and bugs, please check the Issues Page from the Author of this script.
At the time of writing this article (3/23/19), there are 2 known bugs with the current release.
Forcing an update when all else fails
A few times the script above has failed me, to get around I still execute the jexec for the jail I wish to update.
jexec 1 fetch -o PMS_Updater.sh https://raw.githubusercontent.com/luluhoc/PMS_Updater/master/PMS_UpdaterPLEXPASS.sh chmod 755 PMS_Updater.sh
And then execute the following command. (Just be sure to name the downloaded Plex server files to PlexBuild.tar.bz2)
./PMS_Updater.sh -l PlexBuild.tar.bz2 -vv -a