Skip to content
Snippets Groups Projects
Commit b5a6d158 authored by DJ Mountney's avatar DJ Mountney Committed by Marin Jankovski
Browse files

Merge branch '2800-postgresql-detection-and-upgrading-since-10-0-0-rc5-ubuntu-16-10' into 'master'

Update to pg-upgrade output

Closes #2800

See merge request !1962

(cherry picked from commit 1248e09a)

7b80458b Update to pg-upgrade output
f78a22d1 Adding Changelog entry for #2800
c84c2a75 Merge branch 'master' into '2800-postgresql-detection-and-upgrading-since-10-0-0-rc5-ubuntu-16-10'
parent 340e18cd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -6,6 +6,7 @@ omnibus-gitlab repository.
10.0.2
 
- Fix an issue where enabling a GitLab Geo role would also disable all default services
- Update pg-upgrade output to be more clear when a bundled PostgreSQL is not in use
 
10.0.1
 
Loading
Loading
Loading
Loading
@@ -70,6 +70,14 @@ add_command_under_category 'pg-upgrade', 'database',
Kernel.exit 0
end
 
log 'Checking for a newer version of PostgreSQL to install'
if upgrade_version && Dir.exist?("#{INST_DIR}/#{upgrade_version}")
log "Upgrading PostgreSQL to #{upgrade_version}"
else
$stderr.puts 'No new version of PostgreSQL installed, nothing to upgrade to'
Kernel.exit 0
end
if progress_message('Checking if we already upgraded') do
running_version == upgrade_version
end
Loading
Loading
@@ -77,16 +85,6 @@ add_command_under_category 'pg-upgrade', 'database',
Kernel.exit 0
end
 
if progress_message(
'Checking for a newer version of PostgreSQL to install') do
upgrade_version && Dir.exist?("#{INST_DIR}/#{upgrade_version}")
end
log "Upgrading PostgreSQL to #{upgrade_version}"
else
$stderr.puts 'No new version of PostgreSQL installed, nothing to upgrade to'
Kernel.exit 0
end
unless progress_message(
'Checking if PostgreSQL bin files are symlinked to the expected location'
) do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment