From 987b3e03182382e26f46f51c2934055c89b2f94b Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Tue, 3 Jun 2014 18:49:29 +0200 Subject: [PATCH] CDB-3079 enforces postgres user in preparation script --- test/prepare_db.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/prepare_db.sh b/test/prepare_db.sh index b4f075c9..3c130510 100755 --- a/test/prepare_db.sh +++ b/test/prepare_db.sh @@ -72,11 +72,11 @@ if test x"$PREPARE_PGSQL" = xyes; then sed "s/:PUBLICPASS/${PUBLICPASS}/" | sed "s/:TESTUSER/${TESTUSER}/" | sed "s/:TESTPASS/${TESTPASS}/" | - psql -v ON_ERROR_STOP=1 ${TEST_DB} || exit 1 + psql -U postgres -v ON_ERROR_STOP=1 ${TEST_DB} || exit 1 # TODO: send in a single run, togheter with test.sql - psql -f support/CDB_QueryStatements.sql ${TEST_DB} - psql -f support/CDB_QueryTables.sql ${TEST_DB} + psql -U postgres -f support/CDB_QueryStatements.sql ${TEST_DB} + psql -U postgres -f support/CDB_QueryTables.sql ${TEST_DB} fi