From 21f15d9aef2c246202fc36ab06e30a031de0d1cc Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 23 Sep 2018 00:47:18 +0200 Subject: [PATCH] Little fixes according to OpenVPN 2.4 Yeah, seconds, really :) --- README.md | 2 +- openvpn-install.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6021577..c91993c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ OpenVPN installer for Debian, Ubuntu, Fedora and CentOS. -This script will let you setup your own secure VPN server in just a few minutes. +This script will let you setup your own secure VPN server in just a few seconds. ## Usage diff --git a/openvpn-install.sh b/openvpn-install.sh index ede7d7e..fbcd470 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -257,8 +257,8 @@ function installQuestions () { done if [[ $COMPRESSION_ENABLED == "y" ]];then echo "Choose which compression algorithm you want to use:" - echo " 1) LZ4 (faster)" - echo " 2) LZ0 (use for OpenVPN 2.3 compatibility)" + echo " 1) LZ4 (more efficient)" + echo " 2) LZ0" until [[ $COMPRESSION_CHOICE =~ ^[1-2]$ ]]; do read -rp"Compression algorithm [1-2]: " -e -i 1 COMPRESSION_CHOICE done @@ -514,7 +514,7 @@ function installOpenVPN () { wget -O - https://swupdate.openvpn.net/repos/repo-public.gpg | apt-key add - apt-get update fi - # Ubuntu >= 16.04 and Debian > 8 have OpenVPN > 2.3.3 without the need of a third party repository. + # Ubuntu >= 16.04 and Debian >= 9 have OpenVPN >= 2.4 without the need of a third party repository. apt-get install openvpn iptables openssl wget ca-certificates curl -y elif [[ "$OS" = 'centos' ]]; then yum install epel-release openvpn iptables openssl wget ca-certificates curl -y