taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

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

avoid going to /tmp

Diffstat:
Mnetzbon/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 @@ -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