[Top][All Lists]

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

[taler-grid5k] 08/141: make pq accesible

From: gnunet
Subject: [taler-grid5k] 08/141: make pq accesible
Date: Thu, 18 Nov 2021 14:49:09 +0100

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

marco-boss pushed a commit to branch master
in repository grid5k.

commit 3a395272cfe879de3ebbd39d01d964bc8aed6e61
Author: Boss Marco <>
AuthorDate: Sat Oct 2 23:31:48 2021 +0200

    make pq accesible
 jfed/       | 2 +-
 scripts/ | 5 ++++-
 scripts/ | 8 ++++----
 3 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/jfed/ b/jfed/
index 1f8f77b..8420a57 100755
--- a/jfed/
+++ b/jfed/
@@ -1,6 +1,6 @@
 # Script run when a machine boots
-set -eu
+set -eua
diff --git a/scripts/ b/scripts/
index 2aba68d..21353bd 100755
--- a/scripts/
+++ b/scripts/
@@ -1,5 +1,8 @@
+echo "listen_addresses='*'" >> /etc/postgresql/13/main/postgresql.conf
+echo "host all all trust" > /etc/postgresql/13/main/pg_hba.conf
 systemctl start postgresql
 su postgres << EOF
@@ -9,7 +12,7 @@ createuser taler-exchange-aggregator
 createuser taler-exchange-closer
 createdb -O taler-exchange-httpd ${DB_NAME}
-create user "${DB_USER}" with encrypted password '"${DB_PASSWORD}"';
+create user "${DB_USER}" with encrypted password '${DB_PASSWORD}';
 grant all privileges on database "${DB_NAME}" to "${DB_USER}";
diff --git a/scripts/ b/scripts/
index 95c42a8..0c62f8a 100755
--- a/scripts/
+++ b/scripts/
@@ -1,8 +1,8 @@
-sed -i 
+sed -i 
-su taler-exchange-httpd taler-exchange-dbinit
+sudo -u taler-exchange-httpd taler-exchange-dbinit
 su taler-exchange-httpd -s /bin/bash << EOF
@@ -14,10 +14,10 @@ GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO 
 GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO "taler-exchange-wire";
-MASTER_KEY=$(su taler-exchange-offline taler-exchange-offline setup)
+MASTER_KEY=$(sudo -u taler-exchange-offline taler-exchange-offline setup)
 sed -i "s/<MASTER_KEY_HERE>/${MASTER_KEY}/g" 
-sed -i "s/<BASE_URL_HERE>/http:$(hostname)/g" 
+sed -i "s\<BASE_URL_HERE>\http://$(hostname)\g" 
 taler-fakebank-run -c /etc/taler/taler.conf &

To stop receiving notification emails like this one, please contact

reply via email to

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