Update scripts from command line?

5 posts / 0 new
Last post
#1 Thu, 06/29/2017 - 01:24
datenimperator

Update scripts from command line?

Hi,

is there a way to update installed Virtualmin scripts from the command line? Regards

Christian

Fri, 06/30/2017 - 18:41
Joe
Joe's picture

Absolutely!

Start by fetching the application ID (you can use --multiline, if you're scripting it and want to parse the output):

# virtualmin list-scripts --domain virtualmin.com
ID                   Description          Version    URL path                
-------------------- -------------------- ---------- -------------------------
149812077929891      Drupal               7.56       /   

Wil fetch the list of installed scripts, including their ID. And, then with the ID of the script you want to upgrade:

# virtualmin install-script --upgrade 149812077929891

--

Check out the forum guidelines!

Sun, 07/02/2017 - 23:37
datenimperator

Thanks Joe. I'm looking for something like apt-get update && apt-get upgrade but for scripts. virtualmin list-scripts --all-domains --multiline doesn't give me information about available upgrades, or does it?

Besides, the output of --multiline is non standard, e.g. not XML, csv or JSON, which makes it unnecessary harder to parse. Also the script clutters the output w/ warnings like

Subroutine script_wordpress_gpl redefined at /etc/webmin/virtual-server/latest-scripts/wordpress.pl line 298.
Thu, 07/26/2018 - 07:41
soydemadrid

Hi did you find a solution to this? I also think this would be very handy if there is a way to update all say "Roundcube" installs to the latest version? When there are a lot of sites and virtual servers setup it can be hard to keep track of which phymyadmin installs or webmail portals etc are up to date. And if any are missed or not updated then it opens up security issues if older versions are vulnerable. Thanks for any help.

Thu, 07/26/2018 - 07:54
soydemadrid

Hi sorry it isn't on the command line BUT i just found the upgrade all scripts section in Virtualmin so that will work nicely for me! Many thanks :)

Topic locked