about summary refs log tree commit diff
path: root/docker_entrypoint.sh
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-02-20 17:25:01 +0100
committerGitHub <noreply@github.com>2018-02-20 17:25:01 +0100
commitbe9bab171dc2b1fe43bc742decb71f64541ca347 (patch)
tree32019e1126c55f5a3172c271ba945320f34bcb17 /docker_entrypoint.sh
parent712488127380dbdd5bde2783d98f0e9793f4d97b (diff)
Set Docker permissions during the build process (#6514)
* Set Docker permissions during the build process

* Remove docker_entrypoint.sh and use COPY with chown
Diffstat (limited to 'docker_entrypoint.sh')
-rw-r--r--docker_entrypoint.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh
deleted file mode 100644
index e92959c8e..000000000
--- a/docker_entrypoint.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/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
-
-echo "Executing process..."
-exec su-exec mastodon:mastodon /sbin/tini -- "$@"