Skip to content
Snippets Groups Projects
Commit 413f57f1 authored by DJ Mountney's avatar DJ Mountney
Browse files

Merge branch 'fix-repmgr-link' into 'master'

Ensure repmgr is linked to its proper binary

Closes #3931

See merge request gitlab-org/omnibus-gitlab!2875
parents 4daf6a02 9f15d9c4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -37,7 +37,7 @@ build do
make "-j #{workers} USE_PGXS=1 install", env: env
 
block 'link bin files' do
postgresql_version = shellout!("#{embedded_bin('psql')} --version", env: env).stdout.split.last
link "#{install_dir}/embedded/postgresql/#{postgresql_version}/bin/repmgr*", "#{install_dir}/embedded/bin/"
psql_bins = File.dirname(File.realpath(embedded_bin('psql')))
link File.join(psql_bins, 'repmgr*'), "#{install_dir}/embedded/bin/"
end
end
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