Project

General

Profile

Bug #27225

fg: no job control in post scriptlet while installing foreman

Added by Ewoud Kohl van Wijngaarden over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
RPMs
Target version:
Found in Releases:
Red Hat JIRA:

Description

When installing Foreman it can show output from a scriptlet:

/var/tmp/rpm-tmp.eSpJPO: line 7: fg: no job control

This comes from Foreman:

# rpm -q --scripts foreman
...
posttrans scriptlet (using /bin/sh):
# We need to run the db:migrate after the install transaction
# always attempt to reencrypt after update in case new fields can be encrypted
/usr/sbin/foreman-rake db:migrate db:encrypt_all >> /var/log/foreman/db_migrate.log 2>&1 || :
/usr/sbin/foreman-rake db:seed >> /var/log/foreman/db_seed.log 2>&1 || :
/usr/sbin/foreman-rake apipie:cache:index >> /var/log/foreman/apipie_cache.log 2>&1 || :
/usr/sbin/foreman-rake tmp:clear >> /var/log/foreman/tmp_clear.log 2>&1 || :
%{foreman_restart} || :
exit 0

Note the un-expanded %{foreman_restart}


Related issues

Has duplicate Packaging - Bug #27224: fg: no job control in post scriptlet while installing foremanDuplicate

Associated revisions

Revision d2314333 (diff)
Added by Ewoud Kohl van Wijngaarden over 3 years ago

Fixes #27225: Fix the Foreman restart macro

Previously it relied on the Foreman build macros to be defined but
this is not defined as a build dependency so the macro is not expanded.
This results in an error:

/var/tmp/rpm-tmp.eSpJPO: line 7: fg: no job control

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/3886 added

#2 Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Triaged changed from No to Yes
  • Target version set to 1.23.0
  • Category set to RPMs
  • Fixed in Releases 1.22.1, 1.23.0 added

#3 Updated by The Foreman Bot over 3 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/3887 added

#4 Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Status changed from Ready For Testing to Closed

#5 Updated by Ewoud Kohl van Wijngaarden over 3 years ago

  • Has duplicate Bug #27224: fg: no job control in post scriptlet while installing foreman added

Also available in: Atom PDF