Skip to content

Commit

Permalink
Refs #28903 - Swap the postgresql{,-server} removal
Browse files Browse the repository at this point in the history
postgresql can't be removed until postgresql-server is removed.
72d7c3f swapped the order. This swaps
the order around.
  • Loading branch information
ekohl committed Mar 5, 2020
1 parent 481ee53 commit 91a0bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/pre/30-el7_upgrade_postgresql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def postgresql_12_upgrade
ensure_packages(server_packages, 'installed')

execute(%(scl enable rh-postgresql12 "PGSETUP_INITDB_OPTIONS='--lc-collate=#{collate} --lc-ctype=#{ctype} --locale=#{collate}' postgresql-setup --upgrade"))
ensure_packages(['postgresql', 'postgresql-server'], 'absent')
ensure_packages(['postgresql-server', 'postgresql'], 'absent')
execute('rm -f /etc/systemd/system/postgresql.service')
ensure_packages(['rh-postgresql12-syspaths'], 'installed')
end
Expand Down

0 comments on commit 91a0bdf

Please sign in to comment.