minio-app/start.sh

18 lines
430 B
Bash
Raw Normal View History

2017-01-24 06:06:51 +00:00
#!/bin/bash
set -eu
2019-01-22 23:29:43 +00:00
mkdir -p /app/data/data /app/data/certs /app/data/config
2017-01-24 06:06:51 +00:00
if ! [ -f /app/data/config/config.json ]; then
cp /app/code/config.json /app/data/config/config.json
fi
2019-01-22 23:29:43 +00:00
echo "Changing ownership"
chown -R cloudron:cloudron /app/data
echo "Starting minio"
exec /usr/local/bin/gosu cloudron:cloudron /app/code/minio server --config-dir /app/data/config --certs-dir /app/data/certs --address :8000 /app/data/data
2017-01-24 06:06:51 +00:00