From 45f04abab2303757221bbe3c1c9cbcf938f616f7 Mon Sep 17 00:00:00 2001 From: Nianyu Shen Date: Tue, 17 Oct 2023 12:12:17 -0700 Subject: [PATCH] update --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5595f7b..27475ba 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,11 +8,11 @@ FROM $BASE COPY sc.crt /tmp/sc.crt -RUN if [[ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ ! -z ${PROXY_CERT_PATH} ]]; then \ +RUN if [ "${OS_DISTRIBUTION}" = "ubuntu" ] && [ ! -z ${PROXY_CERT_PATH} ]; then \ cp /tmp/sc.crt /etc/ssl/certs && \ update-ca-certificates; \ fi -RUN if [[ "${OS_DISTRIBUTION}" = "opensuse" ] && [ ! -z ${PROXY_CERT_PATH} ]]; then \ +RUN if [ "${OS_DISTRIBUTION}" = "opensuse" ] && [ ! -z ${PROXY_CERT_PATH} ]; then \ cp /tmp/sc.crt /usr/share/pki/trust/anchors && \ update-ca-certificates; \ fi