Skip to content

Commit

Permalink
Added Amazon Linux 2 check to the install.sh script to allow installa…
Browse files Browse the repository at this point in the history
…tion on AMI 2.0
  • Loading branch information
dyllan-p committed Jan 28, 2021
1 parent f758a3d commit 6bce9f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ FW_BACKEND="nftables"
API_KEY=""

check_pkg_manager(){
if [ -f /etc/redhat-release ] ; then
if [ -f /etc/redhat-release ]; then
PKG="yum"
elif cat /etc/system-release | grep "Amazon Linux release 2 (Karoo)" > /dev/null; then
PKG="yum"
elif [ -f /etc/debian_version ]; then
PKG="apt"
Expand Down

0 comments on commit 6bce9f8

Please sign in to comment.