Do not override configuration files on updates (rh #1153901)

Rather leave modified configuration files untouched and save the new files
with .rpmnew suffix.

http://stackoverflow.com/questions/14511334/rpm-upgrade-handling-of-config-files

https://bugzilla.redhat.com/show_bug.cgi?id=1153901
This commit is contained in:
Jiří Klimeš 2014-10-20 10:28:21 +02:00
parent d22bbaaa17
commit b2c2088992

View File

@ -583,12 +583,12 @@ fi
%files config-connectivity-fedora %files config-connectivity-fedora
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
%dir %{_sysconfdir}/%{name}/conf.d %dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/20-connectivity-fedora.conf %config(noreplace) %{_sysconfdir}/%{name}/conf.d/20-connectivity-fedora.conf
%files config-server %files config-server
%defattr(-,root,root,0755) %defattr(-,root,root,0755)
%dir %{_sysconfdir}/%{name}/conf.d %dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/00-server.conf %config(noreplace) %{_sysconfdir}/%{name}/conf.d/00-server.conf
%if 0%{?with_nmtui} %if 0%{?with_nmtui}
%files tui %files tui