Skip to content

Commit

Permalink
default to /bin/sh for container user
Browse files Browse the repository at this point in the history
Originally /bin/bash, but there's no warranty it's available in the
target container image, while /bin/sh is guaranteed by POSIX.
  • Loading branch information
joufellasfl committed Feb 25, 2024
1 parent 73122a8 commit 0051142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cqfd
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ test_su_session_command && has_su_session_command=1
# Add the host's user and group to the container, and adjust ownership.
groupadd -og $GROUPS -f builders || die "groupadd command failed."
useradd -s /bin/bash -ou $UID -g $GROUPS -d "$cqfd_user_home" $cqfd_user \
useradd -s /bin/sh -ou $UID -g $GROUPS -d "$cqfd_user_home" $cqfd_user \
|| die "useradd command failed."
mkdir -p "$cqfd_user_home" || die "mkdir command failed."
chown $UID:$GROUPS "$cqfd_user_home" || die "chown command failed."
Expand Down

0 comments on commit 0051142

Please sign in to comment.