gnunet-svn
[Top][All Lists]
Advanced

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

[taler-sandcastle-ng] 36/39: sandcastle-ng: fix override loading


From: gnunet
Subject: [taler-sandcastle-ng] 36/39: sandcastle-ng: fix override loading
Date: Thu, 11 Jan 2024 14:00:09 +0100

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

devan-carpenter pushed a commit to branch master
in repository sandcastle-ng.

commit 5378665d64224c25e8c2f16bee1a4eb743fa7458
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 10 19:36:38 2024 +0100

    sandcastle-ng: fix override loading
---
 sandcastle-run                   | 7 ++++++-
 scripts/demo/setup-sandcastle.sh | 6 +++---
 2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/sandcastle-run b/sandcastle-run
index 7b5ccd1..7d31257 100755
--- a/sandcastle-run
+++ b/sandcastle-run
@@ -42,6 +42,12 @@ else
        OVERRIDES=""
 fi
 
+# Beware: It is futile to pass environment variables to the container here,
+# as they will not be available in the systemd unit that provisions the
+# services in the container.
+# That's why we mount the right start-up script and override
+# to a well-known location.
+
 podman run \
   -d \
   -p=$SANDCASTLE_PORT_MERCHANT:$PORT_INTERNAL_MERCHANT \
@@ -54,7 +60,6 @@ podman run \
   -p=$SANDCASTLE_PORT_BANK_SPA:$PORT_INTERNAL_BANK_SPA \
   --name taler-sandcastle \
   --systemd=always \
-  --env "SANDCASTLE_OVERRIDE_NAME=${SANDCASTLE_OVERRIDE_NAME:=none}" \
   -v talerdata:/talerdata:Z \
   $OVERRIDES \
   -v $PWD/scripts:/scripts:Z \
diff --git a/scripts/demo/setup-sandcastle.sh b/scripts/demo/setup-sandcastle.sh
index 98df369..1b87f94 100755
--- a/scripts/demo/setup-sandcastle.sh
+++ b/scripts/demo/setup-sandcastle.sh
@@ -21,10 +21,10 @@ echo "Provisioning sandcastle"
 # Might eventually be moved to an external file.
 
 # Source any ovverrides from external file
-if [[ "${SANDCASTLE_OVERRIDE_NAME:-}" != "none" ]]; then
-       cat /overrides
-       source "/overrides" || true
+if [[ -e /overrides ]]; then
+  source /overrides
 fi
+
 CURRENCY=${CURRENCY:="KUDOS"}
 EXCHANGE_IBAN=DE159593
 EXCHANGE_PLAIN_PAYTO=payto://iban/$EXCHANGE_IBAN

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