Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-antonyuk committed Jul 3, 2024
1 parent 26f68ee commit 42add3f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/vagrant/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,15 @@ END
yum -y install centos*-release
fi

set -x
local REV=$(cat /etc/redhat-release | sed 's/[^0-9.]*//g')
if [[ "${REV}" =~ ^9 ]]; then
update-crypto-policies --set LEGACY
echo "${COLOR_GREEN}☑ PREPAVE_VM: sha1 gpg key chek enabled${COLOR_RESET}"
else
sudo sed -i 's|^mirrorlist=|#&|; s|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|' /etc/yum.repos.d/CentOS-*
fi
set +x
fi

# Clean up home folder
Expand Down

0 comments on commit 42add3f

Please sign in to comment.