Skip to content

Commit

Permalink
Fixes #27540 - handle remote postgresql in upgrades
Browse files Browse the repository at this point in the history
When the postgresql is remote, it shouldn't be started.

(cherry picked from commit e6974d9)
  • Loading branch information
upadhyeammit authored and tbrisker committed Aug 28, 2019
1 parent 5adaae6 commit b6a7147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion katello/hooks/pre/30-upgrade.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def fail_and_exit(message)

upgrade_step :stop_services, :run_always => true

if katello
if param_value('foreman', 'db_manage') || param_value('katello', 'candlepin_manage_db')
upgrade_step :start_postgresql, :run_always => true
end

Expand Down

0 comments on commit b6a7147

Please sign in to comment.