VPP-958: RPM Update wipes out local changes to 80-vpp.conf 29/8429/2
authorBilly McFall <bmcfall@redhat.com>
Fri, 8 Sep 2017 20:11:58 +0000 (20:11 +0000)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 15 Sep 2017 13:57:51 +0000 (13:57 +0000)
Changed the %config to %config(noreplace) for the two files in the
vpp.spec file that use it, 80-vpp.conf and startup.conf. Any local
changes to these files will now remain. If a newer version of the file
is published, the new version will be copied over as {filename}.rpmnew,
and the changes will not be applied without manual intervention.

Change-Id: I00b2c7abca20bc33f82479374dd184fc57a9abc5
Signed-off-by: Billy McFall <bmcfall@redhat.com>
extras/rpm/vpp.spec

index 6c14b03..86c0dbc 100644 (file)
@@ -294,8 +294,8 @@ fi
 /usr/bin/vpp*
 /usr/bin/svm*
 /usr/bin/elftool
-%config /etc/sysctl.d/80-vpp.conf
-%config /etc/vpp/startup.conf
+%config(noreplace) /etc/sysctl.d/80-vpp.conf
+%config(noreplace) /etc/vpp/startup.conf
 /usr/share/vpp/api/*
 
 %files lib