we have to chown in two steps

This commit is contained in:
Girish Ramakrishnan 2022-12-03 13:01:28 +01:00
parent 9cd1df087a
commit 1d181ed440

View file

@ -70,7 +70,8 @@ fi
chown -R cloudron:cloudron /tmp/mastodon /run/mastodon
if [[ "$(stat -c '%U' /app/data)" != "cloudron" ]]; then
chown -R cloudron:cloudron /app/data
chown -R cloudron:cloudron /app/data/*
chown cloudron:clourdon /app/data
fi
[[ ! -f /app/data/config.sh ]] && cp /app/pkg/config.sh /app/data/config.sh