Ticket #377 (new Feature Request)

Opened 1 year ago

Last modified 9 months ago

Support sample databases in install script

Reported by: benoitg Assigned to:
Priority: high Milestone: WifiDog Auth Server 1.0
Component: Auth server, Install script Keywords:
Cc:

Description

With wifidog getting more powerful (permission system, user profiles, most strings no longer hard coded in the interface), the minimal database provided by the install script is very...empty. Getting all features working from that point on requires a good knowledge of wifidog upfront, which isn't ideal for beginning users. So the install script should:

* Read a directory containing database dumps and offer to use them instead of the base schema and data.

Attachments

install.php.patch2 (18.8 kB) - added by Robin Jones on 03/21/08 16:03:08.
Sample Database Patch (might need a bit of work)

Change History

01/27/08 11:37:50 changed by Robin Jones

could add a button in one of the admin pages that issues the command:

"/usr/bin/pg_dump -h $CONF_DATABASE_HOST -p 5432 -U $CONF_DATABASE_USER -F p -O -d -f $dataSaveLocation $CONF_DATABASE_NAME"


this will follow the same format as the inital data. then all we have to do is parse the selected value of an input box to $content_data_array in install.php.

the only downside to this method is if the size of the database is very large, then the import process will be mind numbingly slow.

03/21/08 16:03:08 changed by Robin Jones

  • attachment install.php.patch2 added.

Sample Database Patch (might need a bit of work)


Add/Change #377 (Support sample databases in install script)