[bitnami/airflow-scheduler] Release 2.9.3-debian-12-r4 (#70480)

Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
Bitnami Bot 2024-08-01 10:56:57 +02:00 committed by GitHub
parent 63d86d3290
commit 54fd129f5a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 5 deletions

View File

@ -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-25T02:30:11Z" \
org.opencontainers.image.created="2024-08-01T07:15:10Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/airflow-scheduler/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-scheduler" \
org.opencontainers.image.title="airflow-scheduler" \
org.opencontainers.image.vendor="Broadcom, Inc." \

View File

@ -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
}