From 1624176052ed6fc2f1f2e4245898af255170b1ce Mon Sep 17 00:00:00 2001 From: Johnny Hughes Date: Jan 24 2022 14:33:11 +0000 Subject: Set dnf plugin to disabled by default on CentOS --- diff --git a/SPECS/subscription-manager.spec b/SPECS/subscription-manager.spec index f5e13a7..77e3c60 100644 --- a/SPECS/subscription-manager.spec +++ b/SPECS/subscription-manager.spec @@ -887,6 +887,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