mirror of
https://git.cloudron.io/cloudron/minio-app
synced 2025-04-18 02:21:48 +00:00
do not chown all the time (on update)
This commit is contained in:
parent
fbeaf26fec
commit
4dc37ac1aa
4
start.sh
4
start.sh
@ -4,8 +4,10 @@ set -eu
|
||||
|
||||
mkdir -p /app/data/data /run/minio/config /run/minio/certs
|
||||
|
||||
# minio is used for backups at times and has a large number of files. optimize by checking if files
|
||||
# are actually in correct chown state
|
||||
echo "==> Changing ownership"
|
||||
chown -R cloudron:cloudron /app/data
|
||||
[[ $(stat --format '%U' /app/data/data) != "cloudron" ]] && chown -R cloudron:cloudron /app/data
|
||||
|
||||
# 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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user