commit 9e03ee6e964a31519cef11a5a42ae1539d60a6fe
parent 9eb8c08a7e2e61a6b2e547fb6faaba952c996738
Author: Florian Dold <florian@dold.me>
Date: Wed, 29 Oct 2025 16:07:07 +0100
always create 'exported' dir
Diffstat:
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/sandcastle-run b/sandcastle-run
@@ -59,6 +59,7 @@ fi
# Will be mounted inside the container
mkdir -p credentials
+mkdir -p exported
# 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
@@ -66,11 +67,6 @@ mkdir -p credentials
# That's why we mount the right start-up script and override
# to a well-known location.
-MOUNT_EXPORTED=
-if [[ -d "$PWD/exported" ]]; then
- MOUNT_EXPORTED="-v $PWD/exported:/exported:z"
-fi
-
exec podman run \
-d \
-p=$SANDCASTLE_PORT_MERCHANT:$PORT_INTERNAL_MERCHANT \
@@ -96,7 +92,7 @@ exec podman run \
-v $PWD/data:/data:Z \
-v $PWD/scripts:/scripts:Z \
-v $PWD/scripts/$SETUP_NAME:/provision:Z \
- $MOUNT_EXPORTED \
+ -v $PWD/exported:/exported:z \
--entrypoint /sbin/init \
--sdnotify=conmon \
"$@" \