]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - support/docker/production/docker-entrypoint.sh
Add account link in videos list
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-entrypoint.sh
CommitLineData
399d20ea
FP
1#!/bin/sh
2set -e
3
4# first arg is `-f` or `--some-option`
5# or first arg is `something.conf`
6if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
4aeb67a5 7 set -- npm "$@"
399d20ea
FP
8fi
9
10# allow the container to be started with `--user`
33837e8b 11if [ "$1" = 'npm' -a "$(id -u)" = '0' ]; then
4aeb67a5
C
12 chown -R peertube:peertube /data
13 exec gosu peertube "$0" "$@"
399d20ea
FP
14fi
15
16exec "$@"