Plugin Updater Automation

Theapplefuture

Dabbler
Joined
Mar 16, 2018
Messages
46
Hello Everybody,

At the moment I have two Plugins installed (Plex and Emby) and I want to keep them up to date.
So my first question is, what is the best way to update a plugin - to press the plugin button via the GUI or with the CLI-command iocage update plugin?
In FreeNAS 11.1 I heard that even after updating the plugin via the GUI the Plugin itself stayed on the version it used to be before the update. I Don't know if this is still the case or if it was just a bug I experienced...

And can you automatize the Update-process? For example every week it will check if there is a new update and if yes it will update the plugin and re-starts the service after the update is done and if there are no new updates it will try next week again ?
Could you maybe do this with a cronjob which performs the CLI-command iocage update plugin? If yes, how do you re-start the service?

Thanks for your help ;)
 
D

dlavigne

Guest
Which FreeNAS version?

For the 11.2 series, we update them ~ every 2-3 weeks to keep up with security advisories and updates and blog the details at https://www.ixsystems.com/blog/ (see https://www.ixsystems.com/blog/june-2019-plugins-update/ for the latest example).

Since updates may impact a current configuration, we recommend to always read the Release Notes for an update first and to make a snapshot of the current plugin in case you decide that you want to rollback. For those reasons, we always include the Release Notes and instructions for rolling back in the blog post. ATM those instructions work from the CLI and are tested from the CLI.
 

Theapplefuture

Dabbler
Joined
Mar 16, 2018
Messages
46
Which FreeNAS version?

For the 11.2 series, we update them ~ every 2-3 weeks to keep up with security advisories and updates and blog the details at https://www.ixsystems.com/blog/ (see https://www.ixsystems.com/blog/june-2019-plugins-update/ for the latest example).

Since updates may impact a current configuration, we recommend to always read the Release Notes for an update first and to make a snapshot of the current plugin in case you decide that you want to rollback. For those reasons, we always include the Release Notes and instructions for rolling back in the blog post. ATM those instructions work from the CLI and are tested from the CLI.

Alright with your information and this link you helped me very lot.
Just to sum up (sorry for asking again) if you don't mind the potential that something could go wrong - cronjob „iocage update plugin“ updates the plugin and restarts the Service after the update is done?
 

Theapplefuture

Dabbler
Joined
Mar 16, 2018
Messages
46
You'll need to script something along the lines of: iocage update plugin && iocage start plugin
I tried to update my plugins via the CLI but I get the message: "snapshot already exists!". On The Web GUI of my plugins it says that I'm not on the current version. Where is my mistake ?
 
Top