]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/entrypoint.sh
9f1e8f38f96e2b28569dbedba197ce2d178e5b6a
5 find /config
! -user peertube
-exec chown peertube
:peertube
{} \
; || true
7 # first arg is `-f` or `--some-option`
8 # or first arg is `something.conf`
9 if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
13 # allow the container to be started with `--user`
14 if [ "$1" = 'node' -a "$(id -u)" = '0' ]; then
15 find /data
! -user peertube
-exec chown peertube
:peertube
{} \
;
16 exec gosu peertube
"$0" "$@"