From 00511420ae570b5bb651c58448d0d01d297aab37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Oufella?= Date: Sun, 25 Feb 2024 15:34:32 -0500 Subject: [PATCH] default to /bin/sh for container user Originally /bin/bash, but there's no warranty it's available in the target container image, while /bin/sh is guaranteed by POSIX. --- cqfd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cqfd b/cqfd index b1f94f7..3228f31 100755 --- a/cqfd +++ b/cqfd @@ -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."