Add default config for mc in startup
This commit is contained in:
parent
9272b4fa7b
commit
9683b980b0
6
start.sh
6
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
|
||||
|
|
Loading…
Reference in New Issue