fixed wget command

wget was targeted to a directory instead of a file
This commit is contained in:
Bastiaan Nelissen 2016-12-08 12:26:47 +01:00 committed by GitHub
parent 794897eb28
commit b632e69cdf

View file

@ -707,8 +707,11 @@ confOpenVPN() {
fi fi
# Get the PiVPN easy-rsa # Get the PiVPN easy-rsa
wget -q -O "/tmp/EasyRSA-${easyrsaVer}" "${easyrsaRel}" # BN. wget command does not work and throws an error. "/tmp/EasyRSA-3.0.1-pivpn1/: Is a directory"
tar xzf /tmp/EasyRSA-${easyrsaVer} -C /tmp # 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 mv /tmp/EasyRSA-${easyrsaVer}/ /etc/openvpn/easy-rsa/
$SUDO chown -R root:root /etc/openvpn/easy-rsa $SUDO chown -R root:root /etc/openvpn/easy-rsa
$SUDO mkdir /etc/openvpn/easy-rsa/pki $SUDO mkdir /etc/openvpn/easy-rsa/pki