Skip to content

Commit 1aea20a

Browse files
Copilotramereth
andcommitted
Fix platform-specific repository names for RHEL 8 variants
Co-authored-by: ramereth <[email protected]>
1 parent 0fcb0f2 commit 1aea20a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

libraries/sql/_connection.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,14 @@ def install_pg_gem
8383
declare_resource(:package, libpq_package_name) { compile_time(true) }
8484
declare_resource(:package, 'perl-IPC-Run') do
8585
compile_time(true)
86-
if platform?('oracle')
86+
case node['platform']
87+
when 'oracle'
8788
options ['--enablerepo=ol8_codeready_builder']
88-
else
89+
when 'redhat'
8990
options('--enablerepo=codeready-builder-for-rhel-8')
91+
else
92+
# CentOS Stream, AlmaLinux, Rocky Linux use powertools
93+
options('--enablerepo=powertools')
9094
end
9195
end
9296
when 9

0 commit comments

Comments
 (0)