Project

General

Profile

Actions

Bug #26837

closed

Goferd config modified incorrectly by katello client RPM install

Added by Garret Rumohr over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
RPMs
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

The current katello client RPM will modify goferd to use python3 by using sed to replace bin/python with bin/python3.
Fedora 30 ships with /etc/sysconfig/goferd default containing:

# Python interpreter.
PYTHON=/usr/bin/python3

# Python optimization (0=disabled, 1=enabled).
PYTHONOPTIMIZE=1

The scripted sed line will result in PYTHON=/usr/bin/python33 causing goferd to fail to start since python33 is not present. Adding an end of line match check should make the modification only if it's PYTHON=/usr/bin/python

I did this a bit out of order, but this issue should be corrected by this PR - https://github.com/theforeman/foreman-packaging/pull/3785

Actions

Also available in: Atom PDF