]> git.decadent.org.uk Git - dak.git/commitdiff
Make it easier to spot if psql fails
authorMark Hymers <mhy@debian.org>
Sat, 30 Jul 2011 14:33:18 +0000 (15:33 +0100)
committerMark Hymers <mhy@debian.org>
Sat, 30 Jul 2011 14:33:18 +0000 (15:33 +0100)
Signed-off-by: Mark Hymers <mhy@debian.org>
setup/README

index 9d5103c19e4ef8e043ef5d7cbb2c676a12cd9911..b3a08fb39c96d76e43770082b98bc613a846d7cf 100644 (file)
@@ -41,8 +41,9 @@ Create the additional roles:
 Create an empty database with SQL_ASCII encoding:
 # createdb -T template0 -E SQL_ASCII -O dak projectb
 
-Import the schema:
-# psql -f current_schema.sql -d projectb
+Import the schema.  We redirect STDOUT to /dev/null as otherwise it's
+impossible to see if something fails.
+# psql -1 -f current_schema.sql -d projectb >/dev/null
 
 Set up some core data in projectb to get started (read the init_vars file if
 you wish to customise various aspects):