Skip to content

Commit e50d6da

Browse files
committed
Resolve rpm install conflicts
When installing rpm in rhel there are conflicts on existing files To avoid this conflict spec install step will remove the existing files and replace them with the new version
1 parent aa7ca3b commit e50d6da

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sos.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ support technicians and developers.
5656
%py3_install '--install-scripts=%{_sbindir}'
5757
%endif
5858

59+
# cleanup to avoid conflicts with sos already installed
60+
rm -rf %{buildroot}%{_sysconfdir}/%{sosname}
61+
5962
install -d -m 755 %{buildroot}%{_sysconfdir}/%{sosname}
6063
install -d -m 700 %{buildroot}%{_sysconfdir}/%{sosname}/cleaner
6164
install -d -m 755 %{buildroot}%{_sysconfdir}/%{sosname}/presets.d

0 commit comments

Comments
 (0)