gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated (655366c6 -> 3e106030)


From: gnunet
Subject: [taler-exchange] branch master updated (655366c6 -> 3e106030)
Date: Wed, 06 Dec 2023 11:54:56 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a change to branch master
in repository exchange.

    from 655366c6 invoking sudo on the right command
     new 57654136 create dbusers for all exchange users
     new 3e106030 merge

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 contrib/taler-exchange-dbconfig | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/contrib/taler-exchange-dbconfig b/contrib/taler-exchange-dbconfig
index 100b1c33..a2187af8 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
             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' \
                 | sudo -u "$DBUSER" psql "$DBNAME"

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]