add amazon ami

This commit is contained in:
Ben Menking 2018-11-01 02:01:47 +00:00
parent 2f410be73a
commit e03c911987
2 changed files with 6 additions and 1 deletions

View file

@ -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.

5
openvpn-install.sh Normal file → Executable file
View file

@ -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