From e79007177da7d2858403af41dac340821ed7b70f Mon Sep 17 00:00:00 2001 From: yash-seclogic Date: Fri, 31 Jan 2025 16:04:11 +0530 Subject: [PATCH] Install support for Amazon Linux 2 --- install-host/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/install-host/install.sh b/install-host/install.sh index 5f2dba7..60391d9 100755 --- a/install-host/install.sh +++ b/install-host/install.sh @@ -173,6 +173,12 @@ case $distro in filename="$(wget -qO- https://golang.org/dl/ | grep -oE 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1)"; install_go $filename install_vuls;; + "amzn") + # For Amazon Linux 2 (amzn) + yum $OPT install sqlite git gcc make wget + filename="$(wget -qO- https://golang.org/dl/ | grep -oP 'go([0-9\.]+)\.linux-amd64\.tar\.gz' | head -n 1)"; + install_go $filename + install_vuls;; *) # we can add more install command for each distros. echo "\"$distro\" is not supported distro, so please install packages manually." ;; -esac +esac \ No newline at end of file