Bug 1983797

Summary: cockpit upgrade - grep: {_sysconfdir}/pam.d/cockpit: No such file or directory
Product: [Fedora] Fedora Reporter: Damian Wrobel <dwrobel>
Component: cockpitAssignee: Martin Pitt <mpitt>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dperpeet, mmarusak, mpitt, patrick, pvolpe, stefw
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-20 04:35:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Damian Wrobel 2021-07-19 19:35:55 UTC
Description of problem:

Upgrading cockpit generates the error message like the following:
  Running scriptlet: cockpit-ws-248-1.fc33.armv7hl                                                                                                                                                                                      15/59 
grep: {_sysconfdir}/pam.d/cockpit: No such file or directory

Seems to be caused by the lack of the '%' character in front of {_sysconfdir} here[1]:

    if grep --color=auto pam_cockpit_cert {_sysconfdir}/pam.d/cockpit; 

The same seems to be applicable for f33, f34 and rawhide.

[1] https://src.fedoraproject.org/rpms/cockpit/c/f4e105022dcc6b57af4d0bf152ceada68715083a?branch=f33

Comment 1 Martin Pitt 2021-07-20 04:35:32 UTC

*** This bug has been marked as a duplicate of bug 1983077 ***