summaryrefslogtreecommitdiff
path: root/.dockerfiles/entrypoint.sh
blob: 872d4fde3880903861fbe4ca24f17837235c0b86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

[ -n "${PUID}" ] && usermod -u "${PUID}" tube
[ -n "${PGID}" ] && groupmod -g "${PGID}" tube

printf "Configuring tube ..."
[ -z "${DATA}" ] && DATA="/data"

export DATA

printf "Switching UID=%s and GID=%s\n" "${PUID}" "${PGID}"
exec su-exec tube:ytube "$@"