Skip to content

Commit 56f3709

Browse files
committed
Adding amazonlinux to pre-check
1 parent bc6a652 commit 56f3709

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

metadata.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
}
4747
],
4848
"operatingsystem_support": [
49+
{
50+
"operatingsystem": "Amazon",
51+
"operatingsystemrelease": [
52+
"2"
53+
]
54+
},
4955
{
5056
"operatingsystem": "RedHat",
5157
"operatingsystemrelease": [

tasks/precheck.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ elif grep -qi redhat /etc/os-release && [[ "$(cat /proc/sys/crypto/fips_enabled)
1111
osfamily="redhatfips"
1212
else
1313
osfamily="el"
14+
if grep -qi amazon /etc/os-release && grep -qi "VERSION_ID=\"2\"" /etc/os-release; then
15+
version=7
16+
fi
1417
fi
1518

1619
# OS-specific modifications

0 commit comments

Comments
 (0)