From 5e8976915215032d4bb30aac35e3725dd621c84d Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Sat, 13 Aug 2022 17:03:11 +0300 Subject: [PATCH] Apply insecure option to alias setting as well --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 608db87..6bae5bf 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,11 +2,11 @@ set -euxo pipefail -mc alias set deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY - insecure_option="" if ["$MINIO_INSECURE" == "true"]; then insecure_option="--insecure" fi +mc alias set $insecure_option deploy $MINIO_ENDPOINT $MINIO_ACCESS_KEY $MINIO_SECRET_KEY + mc mirror --overwrite $insecure_option $1 "deploy/$2"