Project

General

Profile

« Previous | Next » 

Revision 22d6a20f

Added by Ewoud Kohl van Wijngaarden over 4 years ago

Refs #28915 - Only run upgrade if the installer ran

If the user passed in --noop, no upgrade should take place. When the
install failed, there's also no point in running the upgrades.

View differences:

hooks/post/30-upgrade.rb
if foreman_server?
if !app_value(:noop) && [0, 2].include?(@kafo.exit_code) && foreman_server?
execute('foreman-rake upgrade:run')
end

Also available in: Unified diff