mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-09-26 15:07:24 +00:00
Source custom config from /app/data/env.sh
This commit is contained in:
7
start.sh
7
start.sh
@@ -9,8 +9,11 @@ mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
echo "==> Changing ownership"
|
||||
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data
|
||||
|
||||
[[ ! -f /app/data/env.sh ]] && echo -e "# Add custom minio configuration to this file\n\nexport CLOUDRON_MINIO_STARTUP_ARGS='server /app/data/data'" > /app/data/env.sh
|
||||
|
||||
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
|
||||
echo "==> Starting minio"
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --certs-dir /run/minio/certs --config-dir /run/minio/config --quiet server --address :8000 /app/data/data
|
||||
|
||||
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio --certs-dir /run/minio/certs --config-dir /run/minio/config --quiet --address :8000 ${CLOUDRON_MINIO_STARTUP_ARGS}
|
||||
|
||||
|
Reference in New Issue
Block a user