aboutsummaryrefslogtreecommitdiff
path: root/debian/db/install/pgsql
diff options
context:
space:
mode:
Diffstat (limited to 'debian/db/install/pgsql')
-rwxr-xr-xdebian/db/install/pgsql3
1 files changed, 3 insertions, 0 deletions
diff --git a/debian/db/install/pgsql b/debian/db/install/pgsql
index 3ea6b266..5ad50a33 100755
--- a/debian/db/install/pgsql
+++ b/debian/db/install/pgsql
@@ -15,6 +15,9 @@ if [ -f /etc/dbconfig-common/taler-merchant.conf ]; then
# We assume ident auth here. We might support password auth later.
echo -e "[merchantdb-postgres]\nCONFIG=postgres:///${dbc_dbname}\n\n" > \
$merchantdb_secretconf
+
+ # Allow the taler-merchant-httpd user to create schemas, needed by dbinit
+ echo 'GRANT CREATE on database "talermerchant" to "taler-merchant-httpd";' | sudo -u postgres psql -f -
# Run database initialization logic
sudo -u taler-merchant-httpd taler-merchant-dbinit -c /etc/taler/taler.conf
;;