Skip to content

Commit 7cb1997

Browse files
committed
debug print for RHEL
Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 8cc5d20 commit 7cb1997

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

fluent-package/Rakefile

+23
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ def macos?
8383
/darwin/ =~ RUBY_PLATFORM
8484
end
8585

86+
def rhel?
87+
retval = false
88+
File.open("/etc/os-release") do |f|
89+
f.readlines.each do |line|
90+
case line
91+
when /ID="amzn"/
92+
retval = true
93+
when /ID="almalinux"/
94+
retval = true
95+
when /ID="rocky"/
96+
retval = true
97+
end
98+
end
99+
end
100+
retval
101+
end
102+
86103
def ensure_directory(dirname)
87104
mkdir_p(dirname) unless File.exist?(dirname)
88105
if block_given?
@@ -433,6 +450,12 @@ class BuildTask
433450
puts "::group::Install ruby gems" if ENV["CI"]
434451
gem_install("bundler", BUNDLER_VERSION)
435452

453+
if not windows? and not macos? and rhel?
454+
IO.popen("rpm -qa | grep ssl") do |rpm_io|
455+
puts rpm_io.read
456+
end
457+
end
458+
436459
gem_home = ENV["GEM_HOME"]
437460
ENV["GEM_HOME"] = gem_staging_dir
438461
ENV["INSTALL_GEM_FROM_LOCAL_REPO"] = "yes"

0 commit comments

Comments
 (0)