From 6e3ad10a805bd0f7b9c10676b69a29027e553b7d Mon Sep 17 00:00:00 2001 From: Bastiaan Nelissen Date: Thu, 8 Dec 2016 20:09:30 +0100 Subject: [PATCH] fixed download location fixed easy-rsa download location Conflicts: auto_install/install.sh --- auto_install/install.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index db551cb..8cd7f41 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -708,12 +708,8 @@ confOpenVPN() { fi # Get the PiVPN easy-rsa - # BN. wget command does not work and throws an error. "/tmp/EasyRSA-3.0.1-pivpn1/: Is a directory" - # wget -q -O "/tmp/EasyRSA-${easyrsaVer}" "${easyrsaRel}" - # tar xzf /tmp/EasyRSA-${easyrsaVer} -C /tmp - wget -q -O "/tmp/EasyRSA-${easyrsaVer}.tgz" "${easyrsaRel}" - tar xzf /tmp/EasyRSA-${easyrsaVer}.tgz -C /tmp - $SUDO mv /tmp/EasyRSA-${easyrsaVer}/ /etc/openvpn/easy-rsa/ + wget -q -O - "${easyrsaRel}" | $SUDO tar xz -C /etc/openvpn && $SUDO mv /etc/openvpn/EasyRSA-${easyrsaVer} /etc/openvpn/easy-rsa + # fix ownership $SUDO chown -R root:root /etc/openvpn/easy-rsa $SUDO mkdir /etc/openvpn/easy-rsa/pki