Skip to content

Commit feb087e

Browse files
authored
Merge pull request #3686 from SUSE/git-fix
Fix Git group id and permissions
2 parents cb88850 + e6fac3e commit feb087e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/bci_build/package/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"shadow",
4747
],
4848
volumes=["/workspace"],
49-
custom_end=rf"""{DOCKERFILE_RUN} useradd -r -u 1000 -g 0 -d /workspace -s /bin/bash git
50-
{DOCKERFILE_RUN} mkdir -p /workspace && chown git:0 /workspace && chmod 775 /workspace
49+
custom_end=rf"""{DOCKERFILE_RUN} useradd -U -u 1000 -d /workspace -s /bin/bash git
50+
{DOCKERFILE_RUN} mkdir -p /workspace && chown git: /workspace && chmod 755 /workspace
5151
WORKDIR /workspace
5252
ENV HOME=/workspace
5353
""",

0 commit comments

Comments
 (0)