Do not install coreutils-single on rocky build image

This commit is contained in:
Michael Legleux
2022-04-02 14:06:14 -07:00
committed by manojsdoshi
parent 656e9fe180
commit 9d3cd718e4

View File

@@ -61,7 +61,11 @@ if [ "${pkgtype}" = "dpkg" ] ; then
else
yum -y update
if [ "${install_from}" = "repo" ] ; then
yum -y install yum-utils coreutils util-linux
pkgs=("yum-utils coreutils util-linux")
if [ "$ID" = "rocky" ]; then
pkgs="${pkgs[@]/coreutils}"
fi
yum install -y $pkgs
REPOFILE="/etc/yum.repos.d/artifactory.repo"
echo "[Artifactory]" > ${REPOFILE}
echo "name=Artifactory" >> ${REPOFILE}