fix(docker): don't chown everything in Vikunja's default root folder

This would try to chown a mounted Vikunja config file as well which failed when that config file was mounted read-only.
This commit is contained in:
kolaente 2023-03-13 11:23:51 +01:00
parent c0c523f0a8
commit 80266d1383
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -6,7 +6,8 @@ if [ -n "$PUID" ] && [ "$PUID" -ne 0 ] && \
echo "info: creating the new user vikunja with $PUID:$PGID"
groupmod -g "$PGID" -o vikunja
usermod -u "$PUID" -o vikunja
chown -R vikunja:vikunja ./
chown -R vikunja:vikunja ./files/
chown vikunja:vikunja .
exec su vikunja -c /app/vikunja/vikunja "$@"
else
echo "info: creation of non-root user is skipped"