about summary refs log tree commit diff
path: root/docker_entrypoint.sh
blob: e5326134026ca4c05c5ff85173fa5806a5af2fc5 (plain) (blame)
1
2
3
4
#!/bin/sh
addgroup -g ${GID} mastodon && adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon
find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon
su-exec mastodon:mastodon /sbin/tini -- "$@"