2017-01-24 06:06:51 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
|
2020-01-16 22:46:41 +00:00
|
|
|
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
2017-01-24 06:06:51 +00:00
|
|
|
|
2020-01-16 22:46:41 +00:00
|
|
|
echo "==> Changing ownership"
|
2019-01-22 23:29:43 +00:00
|
|
|
chown -R cloudron:cloudron /app/data
|
|
|
|
|
2020-01-16 22:46:41 +00:00
|
|
|
# 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
|
2017-01-24 06:06:51 +00:00
|
|
|
|
|
|
|
|