]>
cat aescling's git repositories - mastodon.git/blob - docker_entrypoint.sh
3 ### 1. Adds local user (UID and GID are provided from environment variables).
4 ### 2. Updates permissions, except for ./public/system (should be chown on previous installations).
5 ### 3. Executes the command as that user.
7 echo "Creating mastodon user (UID : ${UID} and GID : ${GID})..."
8 addgroup
-g ${GID} mastodon
&& adduser
-h /mastodon
-s /bin
/sh
-D -G mastodon
-u ${UID} mastodon
10 echo "Updating permissions..."
11 find /mastodon
-path /mastodon
/public
/system
-prune -o -not -user mastodon
-not -group mastodon
-print0 | xargs -0 chown
-f mastodon
:mastodon
13 echo "Executing process..."
14 exec su
-exec mastodon
:mastodon
/sbin
/tini
-- "$@"
This page took 0.07105 seconds and 4 git commands to generate.