From 2103f0b44e8dc1508face037d91816649444a8d8 Mon Sep 17 00:00:00 2001 From: Carl George Date: Aug 25 2021 18:26:08 +0000 Subject: Set dnf plugin to disabled by default on CentOS --- diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index 5da32e3..aa3ef60 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -886,6 +886,10 @@ find %{buildroot} -name \*.py* -exec touch -r %{SOURCE0} '{}' \; %endif %endif +%if %{defined centos} +sed -e '/^enabled=/ s/1/0/' -i %{buildroot}%{_sysconfdir}/dnf/plugins/subscription-manager.conf +%endif + # base/cli tools use the gettext domain 'rhsm', while the # gnome-help tools use domain 'subscription-manager' %files -f rhsm.lang