[webmin-devel] creating a database and random user/pass on module install

Tim Allingham <[email protected]> Tue, 07 Jul 2009 04:12:17 +0000
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have 
the opportunity to enter the BlackBerry Developer Challenge. See full prize 
details at: http://p.sf.net/sfu/blackberry

-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel