Skip to content

Commit

Permalink
fix: do not depend on explicit sandcastle username (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfocko committed Dec 15, 2023
2 parents ec05441 + 55fd0b7 commit 8e06e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/setup_env_in_openshift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# set -x

# Generate passwd file based on current uid, needed for fedpkg
grep -v ^sandcastle /etc/passwd > "${HOME}/passwd"
printf "sandcastle:x:$(id -u):0:Sandcastle:${HOME}:/bin/bash\n" >> "${HOME}/passwd"
grep -v "^$(id -u)" /etc/passwd > "${HOME}/passwd"
printf "$(id -u):x:$(id -u):0:Sandcastle:${HOME}:/bin/bash\n" >> "${HOME}/passwd"
export LD_PRELOAD=libnss_wrapper.so
export NSS_WRAPPER_PASSWD="${HOME}/passwd"
export NSS_WRAPPER_GROUP=/etc/group

0 comments on commit 8e06e63

Please sign in to comment.