]> git.michaelhowe.org Git - packages/o/openafs.git/commit
redhat: Don't replace modified configuration files during rpm update
authorJonathan Billings <jsbillin@umich.edu>
Thu, 8 Mar 2012 14:23:40 +0000 (09:23 -0500)
committerDerrick Brashear <shadow@dementix.org>
Thu, 15 Mar 2012 16:10:19 +0000 (09:10 -0700)
commitfe4ed0d12306087cd12f802d3ad71d42cedfeaa7
treec89afe118e676eb356083ef621fd33056fba0afd
parent6d7032d7d11a1115f0c1d5220fc412da1e9791ec
redhat: Don't replace modified configuration files during rpm update

The previous setting for three %config files mentioned in the spec file:

%config /etc/sysconfig/openafs
%config %{_prefix}/vice/etc/ThisCell
%config %{_prefix}/vice/etc/cacheinfo

When using an unadorned %config, it's possible that these files will
be replaced by the packaged version during a package update.  Changing
%config to %config(noreplace) means that the packaged file will be
installed with the extension .rpmnew if there is already a modified
(from the existing package's version) file with the same name on the
installed machine.

The concern here is that updating an existing system could potentially
change the configuration if the person installing doesn't pay close
attention.  The Rule of Least Surprise indicates that we should
try to preserve existing configuration changes whenever possible.

Change-Id: I50278e6c9d8ebcf4a80386f16b50e9695bdaca0a
Reviewed-on: http://gerrit.openafs.org/6887
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
Reviewed-on: http://gerrit.openafs.org/6889
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-on: http://gerrit.openafs.org/6912
src/packaging/RedHat/openafs.spec.in