From 63d86d3290a4c2cd8e7f7bb57510ab4bf1fe3180 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 1 Aug 2024 10:56:42 +0200 Subject: [PATCH] [bitnami/airflow-worker] Release 2.9.3-debian-12-r4 (#70479) Signed-off-by: Bitnami Containers --- bitnami/airflow-worker/2/debian-12/Dockerfile | 4 ++-- .../rootfs/opt/bitnami/scripts/libairflow.sh | 17 ++++++++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/bitnami/airflow-worker/2/debian-12/Dockerfile b/bitnami/airflow-worker/2/debian-12/Dockerfile index b05a08b0b5c2..ac64231d194f 100644 --- a/bitnami/airflow-worker/2/debian-12/Dockerfile +++ b/bitnami/airflow-worker/2/debian-12/Dockerfile @@ -7,11 +7,11 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ - org.opencontainers.image.created="2024-07-25T09:57:33Z" \ + org.opencontainers.image.created="2024-08-01T07:15:04Z" \ org.opencontainers.image.description="Application packaged by Broadcom, Inc." \ org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/airflow-worker/README.md" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="2.9.3-debian-12-r3" \ + org.opencontainers.image.ref.name="2.9.3-debian-12-r4" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/airflow-worker" \ org.opencontainers.image.title="airflow-worker" \ org.opencontainers.image.vendor="Broadcom, Inc." \ diff --git a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh index fe3955c17ae1..6a23f34bedde 100644 --- a/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh +++ b/bitnami/airflow-worker/2/debian-12/rootfs/opt/bitnami/scripts/libairflow.sh @@ -323,14 +323,25 @@ airflow_webserver_conf_set() { # Check if the value was set before if grep -q "^#*\\s*${key} =.*$" "$file"; then local entry - local new_value="$value" - is_boolean_yes "$is_literal" && new_value="${new_value//\\/\\\\}" && entry="${key} = '${new_value//"'"/\\\'}'" || entry="${key} = ${value}" + if is_boolean_yes "$is_literal"; then + # Replace every single backslash (\) with two backslashes (\\) + local new_value="${value//\\/\\\\}" + # Wrap the value in single quotes (') and escape every single quote with a backslash (\) + entry="${key} = '${new_value//"'"/\\\'}'" + else + entry="${key} = ${value}" + fi # Update the existing key replace_in_file "$file" "^#*\\s*${key} =.*$" "$entry" false else # Add a new key local new_value="$value" - is_boolean_yes "$is_literal" && new_value="${new_value//\\/\\\\}" && new_value="'${new_value//"'"/\\\'}'" + if is_boolean_yes "$is_literal"; then + # Replace every single backslash (\) with two backslashes (\\) + new_value="${new_value//\\/\\\\}" + # Wrap the value in single quotes (') and escape every single quote with a backslash (\) + new_value="'${new_value//"'"/\\\'}'" + fi printf '\n%s = %s' "$key" "$new_value" >>"$file" fi }