Skip to content

Commit 6bc9221

Browse files
authored
Merge pull request #173 from sriram2520/amazon-linux-2023
Fix binary used for Amazon Linux 2023 AMI
2 parents bd58cd9 + ecb388d commit 6bc9221

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/wkhtmltopdf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suffix = case RbConfig::CONFIG['host_os']
4747
os.start_with?('tuxedo_22.') ||
4848
os.start_with?('linuxmint_22')
4949

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

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

6162
os_based_on_debian_9 = os.start_with?('debian_9') ||
6263
os.start_with?('deepin')

0 commit comments

Comments
 (0)