]> cat aescling's git repositories - mastodon.git/blob - docker_entrypoint.sh
Fix #2680 - Run processes in Docker as non-root user (#3159)
[mastodon.git] / docker_entrypoint.sh
1 #!/bin/sh
2 addgroup -g ${GID} mastodon && adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon
3 find /mastodon -path /mastodon/public/system -prune -o -not -user mastodon -not -group mastodon -print0 | xargs -0 chown -f mastodon:mastodon
4 su-exec mastodon:mastodon /sbin/tini -- "$@"
This page took 0.076821 seconds and 4 git commands to generate.