Update scripts from command line?


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



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

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.

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.

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 :slight_smile: