mirror of
https://git.cloudron.io/cloudron/mastodon-app.git
synced 2024-11-25 09:11:00 +00:00
chown carefully
This commit is contained in:
parent
c2851a784a
commit
9cd1df087a
1 changed files with 5 additions and 1 deletions
6
start.sh
6
start.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue