add amazon ami
This commit is contained in:
parent
2f410be73a
commit
e03c911987
2 changed files with 6 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
[](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
5
openvpn-install.sh
Normal file → Executable 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue