1
0
mirror of https://git.cloudron.io/cloudron/minio-app synced 2025-09-25 14:37:41 +00:00

create cert dir

This commit is contained in:
Girish Ramakrishnan
2019-01-22 15:29:43 -08:00
parent 926345c331
commit ba9362ec8c
3 changed files with 11 additions and 66 deletions

View File

@@ -2,12 +2,16 @@
set -eu
mkdir -p /app/data/data /app/data/config
mkdir -p /app/data/data /app/data/certs /app/data/config
if ! [ -f /app/data/config/config.json ]; then
cp /app/code/config.json /app/data/config/config.json
fi
exec ./minio server -C /app/data/config --address :8000 /app/data/data
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