Ticket #377 (new Feature Request)

Opened 15 years ago

Last modified 14 years ago

Support sample databases in install script

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


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.


install.php.patch2 Download (18.8 KB) - added by Robin Jones 14 years ago.
Sample Database Patch (might need a bit of work)

Change History

Changed 14 years ago 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.

Changed 14 years ago by Robin Jones

Sample Database Patch (might need a bit of work)

Note: See TracTickets for help on using tickets.