gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: correctly patch env files with DB name


From: gnunet
Subject: [libeufin] branch master updated: correctly patch env files with DB names
Date: Thu, 02 Mar 2023 15:06:58 +0100

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

grothoff pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 4cef7419 correctly patch env files with DB names
4cef7419 is described below

commit 4cef7419c3b2f23ce4e9b3d4eff2e278b853b0b1
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Thu Mar 2 15:06:55 2023 +0100

    correctly patch env files with DB names
---
 debian/db/install/pgsql         | 9 +++++----
 debian/etc/libeufin/nexus.env   | 2 +-
 debian/etc/libeufin/sandbox.env | 2 +-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/debian/db/install/pgsql b/debian/db/install/pgsql
index 5336037a..79f95097 100755
--- a/debian/db/install/pgsql
+++ b/debian/db/install/pgsql
@@ -2,16 +2,17 @@
 
 set -eu
 
-libeufindb_secretconf=/etc/libeufin-db.secret.conf
-
 # Get database settings from dbconfig-common and write Taler configuration 
files.
 if [ -f /etc/dbconfig-common/taler-libeufin.conf ]; then
   . /etc/dbconfig-common/taler-libeufin.conf
   case "$dbc_dbtype" in
   pgsql)
     # We assume ident auth here.  We might support password auth later.
-    echo -e "[libeufin-postgres]\nCONFIG=postgres:///${dbc_dbname}\n\n" > \
-      $libeufindb_secretconf
+    echo -e "LIBEUFIN_NEXUS_DB_CONNECTION=jdbc:postgres:///${dbc_dbname}\n\n" 
>> \
+        /etc/libeufin/nexus.env
+    echo -e 
"LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:postgres:///${dbc_dbname}\n\n" >> \
+        /etc/libeufin/sandbox.env
+   
 
     # Allow the libeufin-sandbox/nexus user to create schemas, needed by dbinit
     echo "GRANT CREATE ON DATABASE \"${dbc_dbtype}\" TO \"libeufin-nexus\";" | 
sudo -u postgres psql -f -
diff --git a/debian/etc/libeufin/nexus.env b/debian/etc/libeufin/nexus.env
index 85ea07d2..35d0fcf8 100644
--- a/debian/etc/libeufin/nexus.env
+++ b/debian/etc/libeufin/nexus.env
@@ -2,4 +2,4 @@
 # These settings will be passed as environment variables.
 
 LIBEUFIN_NEXUS_PORT=5017
-LIBEUFIN_NEXUS_DB_CONNECTION=jdbc:sqlite:/var/lib/libeufin/nexus/nexus-db.sqlite3
+#LIBEUFIN_NEXUS_DB_CONNECTION=jdbc:sqlite:/var/lib/libeufin/nexus/nexus-db.sqlite3
diff --git a/debian/etc/libeufin/sandbox.env b/debian/etc/libeufin/sandbox.env
index f311b150..6070ed5f 100644
--- a/debian/etc/libeufin/sandbox.env
+++ b/debian/etc/libeufin/sandbox.env
@@ -2,4 +2,4 @@
 # These settings will be passed as environment variables.
 
 LIBEUFIN_SANDBOX_PORT=5016
-LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:sqlite:/var/lib/libeufin/sandbox/sandbox-db.sqlite3
+#LIBEUFIN_SANDBOX_DB_CONNECTION=jdbc:sqlite:/var/lib/libeufin/sandbox/sandbox-db.sqlite3

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