From 917f9fee876a0e0418a37de0a813ffb4d5992156 Mon Sep 17 00:00:00 2001 From: hael Date: Mon, 10 Mar 2025 20:45:40 +0100 Subject: [PATCH] write ENV value from service files to template value by key name --- scripts/scheduler/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index 282e6a0..420b230 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -707,7 +707,9 @@ execute_task() { KEY=$(echo $LINE | jq -r .key) VALUE=$(echo $LINE | jq -r .value) debug "$KEY: $VALUE" - TEMPLATE=$(echo "$TEMPLATE" | jq -r '.fields |= map(if .key == "SMTP_MSG_SIZE" then .value = "'$VALUE'" else . end)') + # write ENV value from service files to template value by key name + #TEMPLATE=$(echo "$TEMPLATE" | jq -r '.fields |= map(.value = "'$VALUE'")') + TEMPLATE=$(echo "$TEMPLATE" | jq -r '.fields |= map(if .key == "'$KEY'" then .value = "'$VALUE'" else . end)') #echo $TEMPLATE; done