]> cat aescling's git repositories - mastodon.git/blobdiff - docker_entrypoint.sh
Increase max height of preview card image (#5092)
[mastodon.git] / docker_entrypoint.sh
index e5326134026ca4c05c5ff85173fa5806a5af2fc5..e92959c8e4d2c7551f971dcc414f402154d5f5dc 100644 (file)
@@ -1,4 +1,14 @@
 #!/bin/sh
+
+### 1. Adds local user (UID and GID are provided from environment variables).
+### 2. Updates permissions, except for ./public/system (should be chown on previous installations).
+### 3. Executes the command as that user.
+
+echo "Creating mastodon user (UID : ${UID} and GID : ${GID})..."
 addgroup -g ${GID} mastodon && adduser -h /mastodon -s /bin/sh -D -G mastodon -u ${UID} mastodon
+
+echo "Updating permissions..."
 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 -- "$@"
+
+echo "Executing process..."
+exec su-exec mastodon:mastodon /sbin/tini -- "$@"
This page took 0.027687 seconds and 3 git commands to generate.