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:
parent
c0c523f0a8
commit
80266d1383
@ -6,7 +6,8 @@ if [ -n "$PUID" ] && [ "$PUID" -ne 0 ] && \
|
|||||||
echo "info: creating the new user vikunja with $PUID:$PGID"
|
echo "info: creating the new user vikunja with $PUID:$PGID"
|
||||||
groupmod -g "$PGID" -o vikunja
|
groupmod -g "$PGID" -o vikunja
|
||||||
usermod -u "$PUID" -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 "$@"
|
exec su vikunja -c /app/vikunja/vikunja "$@"
|
||||||
else
|
else
|
||||||
echo "info: creation of non-root user is skipped"
|
echo "info: creation of non-root user is skipped"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user