about summary refs log tree commit diff
path: root/docker_entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'docker_entrypoint.sh')
-rw-r--r--docker_entrypoint.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh
new file mode 100644
index 000000000..e53261340
--- /dev/null
+++ b/docker_entrypoint.sh
@@ -0,0 +1,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 -- "$@"