From b30130b506bdee4de051c5f6746a3281bba2d2ab Mon Sep 17 00:00:00 2001 From: Nyr Date: Fri, 4 Oct 2013 19:04:12 +0200 Subject: [PATCH] Bugfixes - easy-rsa was downloaded from Github even on systems where it was available by default. - easy-rsa.tar.gz is now removed when no longer needed. --- openvpn-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index d1efac1..bb3b91c 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -126,6 +126,7 @@ else read -n1 -r -p "Press any key to continue..." apt-get update apt-get install openvpn iptables openssl -y + cp -R /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn # easy-rsa isn't available by default for Debian Jessie and newer if [ ! -d /etc/openvpn/easy-rsa/2.0/ ]; then wget --no-check-certificate -O ~/easy-rsa.tar.gz https://github.com/OpenVPN/easy-rsa/archive/master.tar.gz @@ -133,6 +134,7 @@ else mkdir -p /etc/openvpn/easy-rsa/2.0/ cp ~/easy-rsa-master/easy-rsa/2.0/* /etc/openvpn/easy-rsa/2.0/ rm -rf ~/easy-rsa-master + rm -rf ~/easy-rsa.tar.gz fi cd /etc/openvpn/easy-rsa/2.0/ # Let's fix one thing first...