Revision e6974d90
Added by Amit Upadhye almost 5 years ago
katello/hooks/pre/30-upgrade.rb | ||
---|---|---|
|
||
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
|
||
|
Also available in: Unified diff
Fixes #27540 - handle remote postgresql in upgrades
When the postgresql is remote, it shouldn't be started.