Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions scripts/install-elastio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ me="./install-elastio.sh"
default_branch=release

MAX_LINUX_VER=6
MAX_LINUX_MAJOR_REV=0
MAX_LINUX_MAJOR_REV=2

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

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

case ${dist_name} in
amazon | amzn )
if [ $dist_ver -ne 2 ]; then
echo "The Amazon Linux 2 is only supported. Current Amazon Linux $dist_ver isn't supported."
exit 1
fi
cent_fedora_install Amazon $(rpm -E %amzn) amzn
case $dist_ver in
2 | 2023 ) cent_fedora_install Amazon $(rpm -E %amzn) amzn ;;
* ) echo "Only Amazon Linux versions 2 and 2023 are supported. Current Amazon Linux $dist_ver isn't supported."
exit 1
;;
esac
;;

scientific | sl | oracle | ol )
Expand Down