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