diff --git a/README.md b/README.md index 99539ff..958d4a7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![GitLab CI](https://gitlab.com/angristan/openvpn-install/badges/master/pipeline.svg)](https://gitlab.com/angristan/openvpn-install/pipelines) -OpenVPN installer for Debian, Ubuntu, Fedora, CentOS and Arch Linux. +OpenVPN installer for Debian, Ubuntu, Fedora, CentOS, Amazon AMI and Arch Linux. This script will let you setup your own secure VPN server in just a few seconds. diff --git a/openvpn-install.sh b/openvpn-install.sh old mode 100644 new mode 100755 index 21c8623..0f85026 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -67,6 +67,8 @@ function checkOS () { fi fi OS=centos + elif [[ -e /etc/os-release ]]; then + OS=amazon elif [[ -e /etc/arch-release ]]; then OS=arch else @@ -572,6 +574,9 @@ function installOpenVPN () { fi # Ubuntu > 16.04 and Debian > 8 have OpenVPN >= 2.4 without the need of a third party repository. apt-get install -y openvpn iptables openssl wget ca-certificates curl + elif [[ "$OS" = 'amazon' ]]; then + amazon-linux-extras install epel -y + yum install -y openvpn iptables openssl wget ca-certificates curl elif [[ "$OS" = 'centos' ]]; then yum install -y epel-release yum install -y openvpn iptables openssl wget ca-certificates curl