From 9683b980b02bdc0b8b1a70ed5640dba69f1d474f Mon Sep 17 00:00:00 2001 From: Elias Hackradt Date: Sun, 11 Jul 2021 22:56:59 +0200 Subject: [PATCH] Add default config for mc in startup --- start.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/start.sh b/start.sh index 00a9608..160f12c 100755 --- a/start.sh +++ b/start.sh @@ -26,6 +26,12 @@ if [[ ! -f /app/data/env.sh ]]; then echo -e "MINIO_IDENTITY_LDAP_USER_DN_SEARCH_FILTER='(&(objectclass=user)(|(username=%uid)(mail=%uid)))'" >> /app/data/env.sh fi +if [[ ! -d /app/data/mc_config ]]; then + echo "==> Set /app/data/mc default config dir" + mkdir -p /app/data/mc_config + /app/code/mc --config-dir /app/data/mc_config &> /dev/null || true +fi + source /app/data/env.sh # the --config-dir is deprecated and not used. but without it, minio will try to create $HOME/.minio :/ same for --certs-dir