Opened 10 years ago

Closed 10 years ago

#445 closed enhancement (invalid)

RPM minor upgrade should not replace nginx.conf with default

Reported by: Arne Kepp Owned by:
Priority: minor Milestone:
Component: nginx-package Version:
Keywords: rpm centos Cc:
uname -a: Linux someserver.somewhere 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.4.4
built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
TLS SNI support enabled

Description

Hi,

I am using the prebuilt RPMs from http://nginx.org/packages/centos/

Every time I upgrade Nginx I have to remember to manually fix the configuration files, otherwise my system is put in a state where Nginx can't start due to port conflicts.

I think, for minor version upgrades and bugfixes, the RPM should not replace the configuration files but instead created .rpmnew files.

This should be easy to change:
http://stackoverflow.com/questions/14511334/rpm-upgrade-handling-of-config-files

Change History (1)

comment:1 by Sergey Budnevitch, 10 years ago

Resolution: invalid
Status: newclosed

All config files in nginx.spec are already marked as %config(noreplace) and config files are not replaced by newer version, just checked it manually to be sure

Note: See TracTickets for help on using tickets.