From 3146a64fb7b6e02ea8e834e041a7b5f2801695ff Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Fri, 23 May 2025 15:48:09 +0200 Subject: [PATCH] fix: now properly reading variables for the check --- modules/beam-file-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/beam-file-setup.sh b/modules/beam-file-setup.sh index 4b259a4..ddf5093 100644 --- a/modules/beam-file-setup.sh +++ b/modules/beam-file-setup.sh @@ -1,14 +1,14 @@ #!/bin/bash -e function beamFileSetup() { - if [ -n "ENABLE_BEAM_FILE_SENDER" ]; then + if [ -n "$ENABLE_BEAM_FILE_SENDER" ]; then echo "Starting beam file in sender mode" OVERRIDE+=" -f ./modules/beam-file-compose.yml --profile beam-file-sender" BEAM_FILE_SECRET="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)" # NOTE: We could make this persistent across restarts BEAM_FILE_API_KEY="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)" log INFO "Beam File in Sender Mode available uses ApiKey ${BEAM_FILE_API_KEY}" - elif [ -n "ENABLE_BEAM_FILE_RECEIVER" ]; then + elif [ -n "$ENABLE_BEAM_FILE_RECEIVER" ]; then echo "Starting beam file in receiver mode" OVERRIDE+=" -f ./modules/beam-file-compose.yml --profile beam-file-receiver" BEAM_FILE_SECRET="$(cat /proc/sys/kernel/random/uuid | sed 's/[-]//g' | head -c 20)"