summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-08-28 20:32:10 +0200
committerFlorian Dold <florian@dold.me>2021-08-28 20:33:00 +0200
commit8be7085974d1878df4cd0b3253418003c9f95fa2 (patch)
tree3fefc77019eb311b98ea002d29cc056142df4102
parent6a9f3c83ce0eddacf54d545f26c7cd29cfdc6817 (diff)
downloadmerchant-8be7085974d1878df4cd0b3253418003c9f95fa2.tar.gz
merchant-8be7085974d1878df4cd0b3253418003c9f95fa2.tar.bz2
merchant-8be7085974d1878df4cd0b3253418003c9f95fa2.zip
debian: db permissions
m---------contrib/merchant-backoffice0
-rwxr-xr-xdebian/db/install/pgsql3
2 files changed, 3 insertions, 0 deletions
diff --git a/contrib/merchant-backoffice b/contrib/merchant-backoffice
-Subproject 03c8c9b794905878175d07366267bdc01c3795b
+Subproject 4320467db1392e5f48a4acd079f7e2a253cf998
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
;;