gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: -initialize variable in script


From: gnunet
Subject: [libeufin] branch master updated: -initialize variable in script
Date: Mon, 05 Feb 2024 22:36:50 +0100

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

dold pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 07f6ac85 -initialize variable in script
07f6ac85 is described below

commit 07f6ac8554b92194acf1d8a9ac1e00d31c83c1e5
Author: Florian Dold <florian@dold.me>
AuthorDate: Mon Feb 5 22:36:47 2024 +0100

    -initialize variable in script
---
 contrib/libeufin-dbconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/libeufin-dbconfig b/contrib/libeufin-dbconfig
index 7e7bcad7..80e258d5 100755
--- a/contrib/libeufin-dbconfig
+++ b/contrib/libeufin-dbconfig
@@ -133,6 +133,9 @@ fi
 
 # Both are the same now!
 DBNAME=$BANK_DBNAME
+# The DB is created by the nexus user.
+# This is an arbitrary choice we make here.
+DBUSER=$NEXUS_DBUSER
 
 if sudo -i -u postgres psql "$DBNAME" </dev/null 2>/dev/null; then
   if [ 1 = "$RESET_DB" ]; then
@@ -152,7 +155,6 @@ fi
 
 if [ 1 = "$DO_CREATE" ]; then
   echo "Creating database '$DBNAME'." 1>&2
-
   if ! sudo -i -u postgres createdb -O "$DBUSER" "$DBNAME"; then
     echo "Failed to create database '$DBNAME'"
     exit 1

-- 
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]