From: Tim A. <ti...@be...> - 2009-07-07 04:27:34
|
Hi All, I'm currently working on a virtualmin/webmin module that works off a MySQL backend, and am trying to work out how to automate the following during the module install 1) Create a database - name can be static in this case, though either static or random will be fine 2) Import a MySQL dump to the database 3) Set up a user with random username and password, and return these details to the script The database is universal, not domain specific for virtualmin, so I don't believe its something to be handled by the feature_setup sub in virtual_feature.pl. Is this something that is possible to achieve, or should I include an install.cgi page that is called if no database details found, for the setup to be run initially? Cheers Tim Allingham |