release rocky-repos content require switch from mirrorlist to baseurl

This commit is contained in:
Trevor Cooper 2022-07-07 21:49:15 -07:00
parent 404196b54a
commit d803ebf3ca
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -10,6 +10,9 @@ sub run {
if (get_version_major() < 9) {
script_run "sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/Rocky-*";
script_run "sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/Rocky-*";
} else {
script_run "sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/rocky*";
script_run "sed -i 's,^#\(baseurl=http[s]*://\),\1,g' /etc/yum.repos.d/rocky*";
}
script_run 'printf "stg/rocky\n" > /etc/dnf/vars/contentdir';
script_run 'dnf clean all';