Mirror of PeerTube
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

docker-entrypoint.sh 355B

12345678910111213141516
  1. #!/bin/sh
  2. set -e
  3. # first arg is `-f` or `--some-option`
  4. # or first arg is `something.conf`
  5. if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then
  6. set -- npm "$@"
  7. fi
  8. # allow the container to be started with `--user`
  9. if [ "$1" = 'npm' -a "$(id -u)" != '0' ]; then
  10. chown -R peertube:peertube /data
  11. exec gosu peertube "$0" "$@"
  12. fi
  13. exec "$@"