Skip to content

Commit fbdaf41

Browse files
Eugene Kovalenkoanelson
andauthored
Add AL2023 to the installer + kernel 6.2 support (#76)
Closes #73 Co-authored-by: Adam Nelson <anelson@users.noreply.github.com>
1 parent b4d43d6 commit fbdaf41

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

scripts/install-elastio.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ me="./install-elastio.sh"
44
default_branch=release
55

66
MAX_LINUX_VER=6
7-
MAX_LINUX_MAJOR_REV=0
7+
MAX_LINUX_MAJOR_REV=2
88

99
cent_fedora_kernel_devel_install()
1010
{
@@ -66,8 +66,14 @@ cent_fedora_install()
6666
rpm --import http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-$2
6767
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$2.noarch.rpm
6868
elif [ "$1" = "Amazon" ]; then
69-
amazon-linux-extras install -y epel
70-
yum install -y nbd
69+
case $2 in
70+
2 ) amazon-linux-extras install -y epel
71+
yum install -y nbd
72+
;;
73+
2023 ) arch=$(uname -m)
74+
yum localinstall -y https://fedora.mirror.constant.com/fedora/linux/releases/37/Everything/$arch/os/Packages/n/nbd-3.24-3.fc37.$arch.rpm
75+
;;
76+
esac
7177
fi
7278

7379
# The elastio-repo package is going to be moved from the x86_64/Packages to the noarch/Packages
@@ -275,11 +281,12 @@ esac
275281

276282
case ${dist_name} in
277283
amazon | amzn )
278-
if [ $dist_ver -ne 2 ]; then
279-
echo "The Amazon Linux 2 is only supported. Current Amazon Linux $dist_ver isn't supported."
280-
exit 1
281-
fi
282-
cent_fedora_install Amazon $(rpm -E %amzn) amzn
284+
case $dist_ver in
285+
2 | 2023 ) cent_fedora_install Amazon $(rpm -E %amzn) amzn ;;
286+
* ) echo "Only Amazon Linux versions 2 and 2023 are supported. Current Amazon Linux $dist_ver isn't supported."
287+
exit 1
288+
;;
289+
esac
283290
;;
284291

285292
scientific | sl | oracle | ol )

0 commit comments

Comments
 (0)