fix(docker): passing environment variables into the container

This commit is contained in:
kolaente 2023-02-01 18:50:40 +01:00
parent 32ff4b2cbd
commit 3b1887e438
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -7,9 +7,8 @@ if [ -n "$PUID" ] && [ "$PUID" -ne 0 ] && \
addgroup -g "$PGID" vikunja
adduser -s /bin/sh -D -G vikunja -u "$PUID" vikunja -h /app/vikunja -H
chown -R vikunja:vikunja ./
su -pc /app/vikunja/vikunja - vikunja "$@"
exec su vikunja -c /app/vikunja/vikunja "$@"
else
echo "info: creation of non-root user is skipped"
exec /app/vikunja/vikunja "$@"
fi