CLI docs out of date, or disconnect-database.pl missing from virtualmin?

Hey there - I'm working on an install script where an external db creates a db, but I can't specify the name. I'm able to get the db name in return, so I can associate it with the domain in Virtualmin with the "virtualmin import-database" CLI command.

In the uninstall method, I want to reverse this and disassociate the db with the domain before the external program destroys the database. I found http://www.virtualmin.com/documentation/developer/cli/disconnect_database, but while I have a /usr/libexec/webmin/virtual-server/import-database.pl, I don't have a /usr/libexec/webmin/virtual-server/disconnect-database.pl

Did this get removed?

Status: 
Closed (fixed)

Comments

Actually there is no such API command, sorry... Although we could be convinced to add one pretty easily :-)

Actually, ignore my previous comment .. disconnect-database.pl should exist.

Which Virtualmin version are you running?

Hey Jamie...Strange - I don't have it on 3.82, but I see it on another server with 3.84. I should probably upgrade...

Thx for the offer to add the api, tho. ;) I noticed last night that once the db's deleted, it disappears from the domain's control panel, anyways...just would be nice to do it "right."

Ok, if you upgrade to the latest version (3.86) then you will get this API command, which disconnects the DB in the right way..

Automatically closed -- issue fixed for 2 weeks with no activity.