fix(docker): allow non-unique group id
continuous-integration/drone/push Build is passing Details

This commit is contained in:
kolaente 2023-03-11 15:04:36 +01:00
parent 4de0efec1d
commit a897ffc8ee
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ set -e
if [ -n "$PUID" ] && [ "$PUID" -ne 0 ] && \
[ -n "$PGID" ] && [ "$PGID" -ne 0 ] ; then
echo "info: creating the new user vikunja with $PUID:$PGID"
groupmod -g "$PGID" vikunja
usermod -u "$PUID" vikunja
groupmod -g "$PGID" -o vikunja
usermod -u "$PUID" -o vikunja
chown -R vikunja:vikunja ./
exec su vikunja -c /app/vikunja/vikunja "$@"
else