Skip to content

Commit 6efe3d3

Browse files
committed
azure: docker: set up HOME variable to fix Coverity builds
In commit 01a8340 (azure: docker: fix ARM builds by replacing gosu(1), 2020-02-18), we've switched our entrypoint from gosu(1) to use sudo(1) instead to fix our ARM builds. The switch introduced an incompatibility that now causes our Coverity builds to fail, as the "--preserve-env" switch will also keep HOME at its current value. As a result, Coverity now tries to set up its configuration directory in root's home directory, which it naturally can't write to. Fix the issue by adding the "--set-home" flag to sudo(1).
1 parent 1722390 commit 6efe3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash -e
22
useradd --shell /bin/bash libgit2
33
chown --recursive libgit2:libgit2 /home/libgit2
4-
exec sudo --preserve-env --user=libgit2 "$@"
4+
exec sudo --preserve-env --set-home --user=libgit2 "$@"

0 commit comments

Comments
 (0)