[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 01/02: create dbusers for all exchange users
From: |
gnunet |
Subject: |
[taler-exchange] 01/02: create dbusers for all exchange users |
Date: |
Wed, 06 Dec 2023 11:54:57 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository exchange.
commit 576541362e755af6aeab3c5ba4f5ae9cba282c8d
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Wed Dec 6 19:53:59 2023 +0900
create dbusers for all exchange users
---
contrib/taler-exchange-dbconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/contrib/taler-exchange-dbconfig b/contrib/taler-exchange-dbconfig
index 66ad613c..18fc23bd 100755
--- a/contrib/taler-exchange-dbconfig
+++ b/contrib/taler-exchange-dbconfig
@@ -161,6 +161,10 @@ then
do
if [ "$GROUPIE" != "$DBUSER" ]
then
+ if ! sudo -i -u postgres createuser "$GROUPIE" 2> /dev/null
+ then
+ echo "Database user '$GROUPIE' already existed. Continuing
anyway." 1>&2
+ fi
sudo -u "$DBUSER" \
echo -e 'GRANT SELECT,INSERT,UPDATE ON ALL TABLES IN SCHEMA
exchange TO "'"$GROUPIE"'";\n' \
'GRANT USAGE ON ALL SEQUENCES IN SCHEMA exchange TO
"'"$GROUPIE"'";\n' \
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.