Possible to Mass Delete a Script Installer Script?

10 posts / 0 new
Last post
#1 Sat, 03/06/2010 - 19:34
kenlyle

Possible to Mass Delete a Script Installer Script?

I was installing LimeSurvey in my server template, but it seems nobody is using it, and the updates are so frequent, it's a distraction. I've got 8 or 10 left. Can I get rid of them in batch?

Thanks, K

Sat, 03/06/2010 - 23:52
andreychek

Sorry, I don't believe there's a way to mass-uninstall an Install Script.

You can disable them so no one else can install it -- in System Settings -> Scripts Installers -> Disable Scripts.

However, for actual removal, I believe you'll need to go through and do each one individually.

-Eric

Sun, 03/07/2010 - 06:44
kenlyle

Now that I've updated those instances, I can't find a quick Virtualmin way to locate them again. Is there a systematic way to find out where a given app is installed?

At least I was consistent in naming the directories. Here's a find command somebody may find useful:

find / -maxdepth 3 -name whateveryouresearchingfor

Ken

Sun, 03/14/2010 - 11:25
kenlyle

Failing that, I would like to have a clean way to locate/list the paths to instances of a given program.

It's not trivial, because Joomla, for example, is installed in the root, not a tell-tale name sake directory like I use for some apps.

Best, K

Sun, 03/14/2010 - 12:01
andreychek

Linking to the bug report on this:

https://www.virtualmin.com/node/13760

We'll see what Jamie has to say in that bug report, but the only way I know of to handle that would be to go into /etc/webmin/virtual-server/scriptlog, and do a search for the Install Scripts in question.

-Eric

Sun, 03/14/2010 - 12:02
kenlyle

Yeah, that's very informative, and I should have linked to my FR. Thanks for handling that.

I am looking to do an rsync of just Script Installer managed Joomla instances for now.

K

Sun, 03/14/2010 - 13:29
kenlyle

This is one of those things that is best done using the command-line API. If you wanted to remove all instances of sugarcrm from all domains, you could do it with a shell loop like :

for dom in virtualmin list-domains --name-only; do virtualmin delete-script --domain $dom --type sugarcrm done

Posted by JamieCameron on Sun, 2010-03-14 13:10

Sun, 03/14/2010 - 13:36
kenlyle

Anyone know how to enhance this a tiny bit to say, if a certain table in the installed application's database has < X records?

For example, delete SugarCRM if the number of Contacts is <2.

I reached a dead end in the API docs.

Best, Ken

Sun, 09/08/2013 - 05:29
phillipwilhelm

So I'm assuming from what I've seen you can't delete a script that has been uploaded into virtualmin unless you run a script like the delete-script.pl?

I've SSH'ed into the server and looked in the directories some forum entries have suggested but no luck to find the script I uploaded...

I think its a bit surprising you can disable a script but not remove it. Thats seems odd.

Hopefully I'm not missing an obvious step to remove the script...

Thanks again.

Mon, 09/09/2013 - 07:37 (Reply to #9)
andreychek

Howdy,

Install Scripts are located in either /usr/{libexec|share}/webmin/virtual-server/scripts/, or /etc/webmin/virtual-server/latest-scripts/.

If you want to remove one, you can delete it and then restart Webmin.

-Eric

Topic locked