1
0

fix: make sure all default CentOS repos are disabled

This commit is contained in:
dump_stack() 2024-10-05 18:03:14 +00:00
parent 51158fae47
commit b626012591
Signed by: dump_stack
GPG Key ID: C9905BA72B5E02BB

View File

@ -121,6 +121,7 @@ func (centos CentOS) runs() (commands []string) {
}
cmdf("sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/* || true")
cmdf("sed -i 's/name/enabled=0\\nname/' /etc/yum.repos.d/* || true")
for _, repo := range repos {
cmdf("echo -e '%s' >> /etc/yum.repos.d/oot.repo\n", repo)