Submitted by jlk8 on Thu, 07/07/2011 - 00:29
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
Submitted by JamieCameron on Thu, 07/07/2011 - 01:46 Comment #1
Actually there is no such API command, sorry... Although we could be convinced to add one pretty easily :-)
Submitted by JamieCameron on Thu, 07/07/2011 - 13:06 Comment #2
Actually, ignore my previous comment .. disconnect-database.pl should exist.
Which Virtualmin version are you running?
Submitted by jlk8 on Thu, 07/07/2011 - 13:12 Comment #3
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."
Submitted by JamieCameron on Thu, 07/07/2011 - 13:13 Comment #4
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..
Submitted by Issues on Thu, 07/21/2011 - 15:21 Comment #5
Automatically closed -- issue fixed for 2 weeks with no activity.