gnunet-svn
[Top][All Lists]
Advanced

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

[taler-deployment] branch master updated: avoid going to /tmp


From: gnunet
Subject: [taler-deployment] branch master updated: avoid going to /tmp
Date: Sat, 04 Mar 2023 16:31:49 +0100

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

grothoff pushed a commit to branch master
in repository deployment.

The following commit(s) were added to refs/heads/master by this push:
     new 72cac18  avoid going to /tmp
72cac18 is described below

commit 72cac18f2925dd1bc4293821bd62150994d7e944
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Mar 4 16:31:46 2023 +0100

    avoid going to /tmp
---
 netzbon/config_launch_libeufin.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/netzbon/config_launch_libeufin.sh 
b/netzbon/config_launch_libeufin.sh
index 3119ee9..b7f5bed 100755
--- a/netzbon/config_launch_libeufin.sh
+++ b/netzbon/config_launch_libeufin.sh
@@ -69,14 +69,17 @@ then
 fi
 
 export LIBEUFIN_SANDBOX_ADMIN_PASSWORD="${SANDBOX_ADMIN_PASSWORD}"
-# FIXME: this should be done inside the Debian package (incl. pw generation!)
+# FIXME: this should be done inside the Debian package (incl. pw generation)
 # We need to add this password to the systemd environment to make it effective.
 echo "LIBEUFIN_SANDBOX_ADMIN_PASSWORD=\"${SANDBOX_ADMIN_PASSWORD}\"" >> 
/etc/libeufin/sandbox.env
 
 SANDBOX_URL="http://localhost:${LIBEUFIN_SANDBOX_PORT}/";
 
 echo -n "Configure the default demobank with ${CURRENCY}..."
+MY_DIR=$PWD
 
+# Go to directory valid for other users.
+cd /
 sudo -E -u libeufin-sandbox \
 libeufin-sandbox config \
     --captcha-url "https://bank.${DOMAIN_NAME}"; \
@@ -143,8 +146,8 @@ EXCHANGE_PAYTO=$(echo $EXCHANGE_DETAILS | jq -r .paytoUri)
 # needs it for the /wire response.
 export EXCHANGE_IBAN
 export EXCHANGE_PAYTO
-echo "EXCHANGE_IBAN=\"${EXCHANGE_IBAN}\" >> config/internal.conf
-echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\" >> config/internal.conf
+echo "EXCHANGE_IBAN=\"${EXCHANGE_IBAN}\" >> ${MY_DIR}/config/internal.conf
+echo "EXCHANGE_PAYTO=\"${EXCHANGE_PAYTO}\" >> ${MY_DIR}/config/internal.conf
 
 echo -n "Setting the default exchange at Sandbox..."
 libeufin-sandbox default-exchange "https://exchange.$DOMAIN_NAME/"; 
$EXCHANGE_PAYTO

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