Add default config for mc in startup

This commit is contained in:
Elias Hackradt 2021-07-11 22:56:59 +02:00
parent 9272b4fa7b
commit 9683b980b0
No known key found for this signature in database
GPG Key ID: 32B038A64E6697B1
1 changed files with 6 additions and 0 deletions

View File

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