aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/docker-entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support/docker/production/docker-entrypoint.sh')
-rwxr-xr-xsupport/docker/production/docker-entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/docker/production/docker-entrypoint.sh b/support/docker/production/docker-entrypoint.sh
index 4099a1984..ba9fcfed5 100755
--- a/support/docker/production/docker-entrypoint.sh
+++ b/support/docker/production/docker-entrypoint.sh
@@ -8,7 +8,7 @@ if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
8fi 8fi
9 9
10# allow the container to be started with `--user` 10# allow the container to be started with `--user`
11if [ "$1" = 'npm' -a "$(id -u)" != '0' ]; then 11if [ "$1" = 'npm' -a "$(id -u)" = '0' ]; then
12 chown -R peertube:peertube /data 12 chown -R peertube:peertube /data
13 exec gosu peertube "$0" "$@" 13 exec gosu peertube "$0" "$@"
14fi 14fi