Skip to content

Commit

Permalink
fix musllinux_1_1
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 15, 2024
1 parent e1ddfa4 commit 918a48f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/build_scripts/install-runtime-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,15 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then
echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf
ldconfig
else
if [ ! -f /etc/pam.d/chsh ]; then
cat <<EOF > /etc/pam.d/chsh
#%PAM-1.0
auth sufficient pam_rootok.so
auth sufficient pam_shells.so
account required pam_permit.so
password include base-password
EOF
fi
# set the default shell to bash
chsh -s /bin/bash root
useradd -D -s /bin/bash
Expand Down

0 comments on commit 918a48f

Please sign in to comment.