Project

Profile

Help

Issue #669

closed

pulp-server rpm treats init.d files as configs

Added by cduryee about 9 years ago. Updated about 4 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.6 Beta
Platform Release:
2.6.1
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Easy Fix, Pulp 2
Sprint:
Quarter:

Description

Description of problem:

The pulp spec file contains the following:

  1. Install the init scripts
    %defattr(755,root,root,-)
    %config %{_initddir}/pulp_celerybeat
    %config %{_initddir}/pulp_workers
    %config %{_initddir}/pulp_resource_manager

This causes manual changes to the init.d files to not be overwritten during RPM upgrades as expected. Instead, a .rpmsave file is created.

The %config directive should be removed so .rpmsave is not created.

Version-Release number of selected component (if applicable): 2.6.0 beta 5

How reproducible: every time

Steps to Reproduce:
1. install pulp
2. edit /etc/rc.d/init.d/pulp_workers (perhaps add an extra newline somewhere)
3. upgrade pulp-server rpm - you can probably use "rpm -Uvh --oldpackage" to do this without waiting for a new version:)

Actual results:

A new pulp_workers file is created as /etc/rc.d/init.d/pulp_workers.rpmsave

Expected results:

The pulp_workers file with the manual change should be overwritten.

Additional info:

This only occurs if someone makes a change to the init.d file. If they do not, it gets upgraded normally.

+ This bug was cloned from Bugzilla Bug #1183700 +

Also available in: Atom PDF