From b2c2088992f3c86ac06cb581d8c36ba5699ad4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20Klime=C5=A1?= Date: Mon, 20 Oct 2014 10:28:21 +0200 Subject: [PATCH] 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 --- NetworkManager.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkManager.spec b/NetworkManager.spec index 1af5a26..026036d 100644 --- a/NetworkManager.spec +++ b/NetworkManager.spec @@ -583,12 +583,12 @@ fi %files config-connectivity-fedora %defattr(-,root,root,0755) %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 %defattr(-,root,root,0755) %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} %files tui