Make CentOS 7 build after EOL
This commit is contained in:
@@ -43,6 +43,11 @@ nmcli c
|
||||
%end
|
||||
|
||||
%post --erroronfail
|
||||
|
||||
echo "gpgkey=https://vault.centos.org/7.9.2009/os/x86_64/RPM-GPG-KEY-CentOS-7" >> /etc/yum.repos.d/base.repo
|
||||
echo "gpgkey=https://vault.centos.org/7.9.2009/os/x86_64/RPM-GPG-KEY-CentOS-7" >> /etc/yum.repos.d/updates.repo
|
||||
rm -f /etc/yum.repos.d/CentOS*
|
||||
|
||||
yum -y update
|
||||
|
||||
cat <<EOF > /etc/sudoers.d/vagrant
|
||||
|
||||
Reference in New Issue
Block a user