Skip to content

Commit

Permalink
Merge pull request #173 from sriram2520/amazon-linux-2023
Browse files Browse the repository at this point in the history
Fix binary used for Amazon Linux 2023 AMI
  • Loading branch information
unixmonkey authored Aug 26, 2024
2 parents bd58cd9 + ecb388d commit 6bc9221
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/wkhtmltopdf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ suffix = case RbConfig::CONFIG['host_os']
os.start_with?('tuxedo_22.') ||
os.start_with?('linuxmint_22')

os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2') ||
os = 'centos_6' if (os.start_with?('amzn_') && os != 'amzn_2' && os != 'amzn_2023') ||
(os.empty? && File.read('/etc/centos-release').start_with?('CentOS release 6'))

os = 'centos_7' if (os.start_with?('amzn_2') && !os.start_with?('amzn_20')) ||
Expand All @@ -56,7 +56,8 @@ suffix = case RbConfig::CONFIG['host_os']
os = 'centos_8' if os.start_with?('rocky_8') ||
os.start_with?('rhel_8.') ||
os.start_with?('ol_8.') ||
os.start_with?('alinux_')
os.start_with?('alinux_') ||
os == 'amzn_2023'

os_based_on_debian_9 = os.start_with?('debian_9') ||
os.start_with?('deepin')
Expand Down

0 comments on commit 6bc9221

Please sign in to comment.