Commit fb03f02a by Patrick Steinhardt

azure: docker: avoid re-creating libgit2 home directory

The Docker entrypoint currently creates the libgit2 user with "useradd
--create-home". As we start the Docker container with two volumes
pointing into "/home/libgit2/", the home directory will already exist.
While useradd(1) copes with this just fine, it will print error messages
to stderr which end up as failures in our Azure pipelines.

Fix this by simply removing the "--create-home" parameter.
parent 52cb4040
#!/bin/bash #!/bin/bash -e
useradd --shell /bin/bash --create-home libgit2 useradd --shell /bin/bash libgit2
chown -R $(id -u libgit2) /home/libgit2 chown -R $(id -u libgit2) /home/libgit2
exec gosu libgit2 "$@" exec gosu libgit2 "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment