Skip to content

Commit 918a48f

Browse files
committed
fix musllinux_1_1
1 parent e1ddfa4 commit 918a48f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docker/build_scripts/install-runtime-packages.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then
138138
echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf
139139
ldconfig
140140
else
141+
if [ ! -f /etc/pam.d/chsh ]; then
142+
cat <<EOF > /etc/pam.d/chsh
143+
#%PAM-1.0
144+
auth sufficient pam_rootok.so
145+
auth sufficient pam_shells.so
146+
account required pam_permit.so
147+
password include base-password
148+
EOF
149+
fi
141150
# set the default shell to bash
142151
chsh -s /bin/bash root
143152
useradd -D -s /bin/bash

0 commit comments

Comments
 (0)