chown carefully

This commit is contained in:
Girish Ramakrishnan 2022-12-03 12:59:26 +01:00
parent c2851a784a
commit 9cd1df087a

View file

@ -67,7 +67,11 @@ else
HOME=/app/data SAFETY_ASSURED=1 bundle exec rails db:migrate HOME=/app/data SAFETY_ASSURED=1 bundle exec rails db:migrate
fi fi
chown -R cloudron:cloudron /app/data /tmp/mastodon /run/mastodon chown -R cloudron:cloudron /tmp/mastodon /run/mastodon
if [[ "$(stat -c '%U' /app/data)" != "cloudron" ]]; then
chown -R cloudron:cloudron /app/data
fi
[[ ! -f /app/data/config.sh ]] && cp /app/pkg/config.sh /app/data/config.sh [[ ! -f /app/data/config.sh ]] && cp /app/pkg/config.sh /app/data/config.sh
source /app/data/config.sh source /app/data/config.sh