42 Commits

Author SHA1 Message Date
Andrew McMillan
ccf332d912 Remove unneeded double-quote. 2010-11-04 08:43:29 +13:00
Andrew McMillan
2f8eb21b82 A few improvements to database creation.
Inspired by Peter Eisentraut's blog post about writing scripts
for PostgreSQL.
2010-05-12 22:14:32 +12:00
Andrew McMillan
0060b0ad92 Exit with error if the update fails. 2010-04-28 14:05:18 +12:00
Andrew McMillan
7429ad689b create-database.sh does not need to specify bash. 2010-03-11 13:52:30 +13:00
Andrew McMillan
1dccbb9ccc Try and reduce the odds of an extra quote in the password. 2010-01-11 10:14:50 +13:00
Andrew McMillan
e2a1a12a75 Note that this is a bash script. 2009-11-27 13:15:49 +13:00
Andrew McMillan
3cbdec7e03 We need to confirm that the language isn't in ${DBNAME}, rather than
looking in template1!
2008-11-06 22:44:47 +13:00
Andrew McMillan
388e137d54 The DBA user test should be against the database we just created. 2008-10-24 13:57:43 +13:00
Andrew McMillan
506d47fc6d Need to set locale to C for tr on mac. 2008-10-10 10:32:52 +13:00
Andrew McMillan
e9a04869fd Another reordering of psql arguments for FreeBSD support. 2008-07-24 10:24:16 +12:00
Andrew McMillan
8f28e17cb5 Move the non-option database parameter to the end of the
psql command line for FreeBSD compatibility.  Also mktemp
syntax is different on FreeBSD.
2008-07-12 23:11:30 +12:00
Andrew McMillan
3f2fab9281 There are two main reasons for failure, not one. 2008-06-28 20:11:12 +12:00
Andrew McMillan
600603a416 Remove over-enthusiastic quoting. 2008-05-05 15:38:37 +12:00
Andrew McMillan
bacd9fd15d Actual 0.9.4.3 release. 2008-04-13 01:52:18 +12:00
Andrew McMillan
618f9d7cb6 Final tweaks to minimise non-error output. 2008-04-13 01:00:42 +12:00
Andrew McMillan
c58ed7cb16 Set the owner of the database tables to be the DBA user we created. 2008-04-13 00:17:37 +12:00
Andrew McMillan
75620d8567 Improved wording. 2008-04-12 23:45:09 +12:00
Andrew McMillan
103e47aeb5 Rework to make this work more reliably in a range of environments. 2008-04-12 23:31:47 +12:00
Andrew McMillan
bab91bf7a2 Use DDL for creating users since the createuser command probably
isn't around on non-Debian systems.
2008-01-26 21:56:29 +13:00
Andrew McMillan
e22aff987c New tables need new permissions. And we now use the specific
appuser / dbuser for everything.
2008-01-26 00:28:00 +13:00
Andrew McMillan
4295e8afa0 Remove commented code. 2008-01-25 08:06:52 +13:00
Andrew McMillan
5d8f127285 Ensure database creation applies the right permissions. 2008-01-25 08:01:15 +13:00
Andrew McMillan
357fcc5cee Fix thinko. 2007-11-05 23:39:29 +13:00
Andrew McMillan
5895e99d72 Attempt to autodiscover the AWL code from reasonable locations. 2007-11-05 23:34:00 +13:00
Andrew McMillan
e12139c636 Move the inclusion of the AWL tables out of the database SQL. 2007-11-05 22:56:33 +13:00
Andrew McMillan
0b4e5b9cb5 Rename SQL definition of database. 2007-11-05 22:49:59 +13:00
Andrew McMillan
b491ee17fd More careful construction of the database, using a DBA user to own it. 2007-11-05 18:25:40 +13:00
Andrew McMillan
516daec7b0 Change the default database name. 2007-09-08 14:14:13 +12:00
Andrew McMillan
c175a97a94 Change the tr character match not to use character classes, since the
user might be operating in a non-UTF-8 character space and could
generate a password which can't be inserted.
2007-09-08 14:13:42 +12:00
Andrew McMillan
73e7f73f2a Correct backslash replacement in pwgen generated password. 2007-04-17 01:17:55 +12:00
Andrew McMillan
76f64d863d Improved layout and comments. 2007-03-08 11:26:25 +13:00
Andrew McMillan
ac49c8c278 Ensure that _some_ password is set. dd /dev/urandom seems to work quite
well, actually.
2007-03-08 08:30:28 +13:00
Andrew McMillan
f6578fcda3 Since we're now doing a random password, we have to be able to override
it when we run the regression tests.
2006-11-23 20:25:04 +13:00
Andrew McMillan
6960ec8065 Randomly generate the first administrator password. 2006-11-23 19:37:04 +13:00
Andrew McMillan
923d10879a Split the supported locales out of the base data so it can be more easily
re-loaded on upgrades.  Added locale for Russian translation from Nick Khazov.
2006-11-14 10:07:53 +13:00
Andrew McMillan
a092387330 Don't always apply sample data to database creation. 2006-11-02 20:26:21 +13:00
Andrew McMillan
6fcde6ec08 Modifications to make scripts more appropriate for maintaining a database
which changes, rather than which we recreate at random.
2006-10-13 18:19:03 +13:00
Andrew McMillan
f4cc7b3d59 More robust database creation script. 2006-10-11 13:29:08 +13:00
Andrew McMillan
e44888f7f8 Now ensure the plpgsql language is created. 2006-10-08 00:25:47 +13:00
Andrew McMillan
db963fadf6 Now supports user create, view & edit with role assignment. Also starts to
support the PROPFIND request that Mulberry makes but does not fully support
Mulberry yet (their timezones are non-standard).
2006-09-27 09:53:34 +12:00
Andrew McMillan
5c69ce125a Close to a Debian build. 2006-09-11 23:10:26 +12:00
Andrew McMillan
792b1a5083 Initial commit 2006-09-04 23:11:31 +12:00