diff --git a/config/software/repmgr.rb b/config/software/repmgr.rb index a01c45fdcb1c13e82e05a497b6ae5674312988d7_Y29uZmlnL3NvZnR3YXJlL3JlcG1nci5yYg==..753eddf4045c90f8fcb8c42c77e39dff3ad519bf_Y29uZmlnL3NvZnR3YXJlL3JlcG1nci5yYg== 100644 --- a/config/software/repmgr.rb +++ b/config/software/repmgr.rb @@ -37,7 +37,7 @@ 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