Skip to content

Commit

Permalink
Merge pull request #27 from kingmilo/amazon_linux_2_install
Browse files Browse the repository at this point in the history
Update install.sh to allow for installation on AMI 2.0
  • Loading branch information
erenJag authored Feb 2, 2021
2 parents 4cea3c2 + 6b49d34 commit 562a002
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 -q "Amazon Linux release 2 (Karoo)"; then
PKG="yum"
elif [ -f /etc/debian_version ]; then
PKG="apt"
Expand Down

0 comments on commit 562a002

Please sign in to comment.