Skip to content

Commit

Permalink
feat: use /bin/bash as the default shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 15, 2024
1 parent 3ab9635 commit e1ddfa4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docker/build_scripts/install-runtime-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ elif [ "${AUDITWHEEL_POLICY}" == "manylinux_2_28" ]; then
fi
elif [ "${BASE_POLICY}" == "musllinux" ]; then
TOOLCHAIN_DEPS="binutils gcc g++ gfortran"
BASETOOLS="${BASETOOLS} curl util-linux tar"
BASETOOLS="${BASETOOLS} curl util-linux shadow tar"
PACKAGE_MANAGER=apk
apk add --no-cache ca-certificates gnupg
else
Expand Down Expand Up @@ -137,4 +137,8 @@ if [ "${BASE_POLICY}" == "manylinux" ]; then
# c.f. https://github.com/pypa/manylinux/issues/1022
echo "/usr/local/lib" > /etc/ld.so.conf.d/00-manylinux.conf
ldconfig
else
# set the default shell to bash
chsh -s /bin/bash root
useradd -D -s /bin/bash
fi
3 changes: 3 additions & 0 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,5 +160,8 @@ if [ -L /usr/local/man ]; then
test -d /usr/local/man
fi

# check the default shell is /bin/bash
test "$SHELL" = "/bin/bash"

# final report
echo "run_tests successful!"

0 comments on commit e1ddfa4

Please sign in to comment.