File tree Expand file tree Collapse file tree 1 file changed +15
-8
lines changed
Expand file tree Collapse file tree 1 file changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ me="./install-elastio.sh"
44default_branch=release
55
66MAX_LINUX_VER=6
7- MAX_LINUX_MAJOR_REV=0
7+ MAX_LINUX_MAJOR_REV=2
88
99cent_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
276282case ${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 )
You can’t perform that action at this time.
0 commit comments