From b632e69cdf18f02e7f7cdd9ec252316e767eddea Mon Sep 17 00:00:00 2001 From: Bastiaan Nelissen Date: Thu, 8 Dec 2016 12:26:47 +0100 Subject: [PATCH] fixed wget command wget was targeted to a directory instead of a file --- auto_install/install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/auto_install/install.sh b/auto_install/install.sh index 8dbe4f5..b2364e5 100755 --- a/auto_install/install.sh +++ b/auto_install/install.sh @@ -707,8 +707,11 @@ confOpenVPN() { fi # Get the PiVPN easy-rsa - wget -q -O "/tmp/EasyRSA-${easyrsaVer}" "${easyrsaRel}" - tar xzf /tmp/EasyRSA-${easyrsaVer} -C /tmp + # 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/ $SUDO chown -R root:root /etc/openvpn/easy-rsa $SUDO mkdir /etc/openvpn/easy-rsa/pki