mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Update EasyRSA to version 3.1.0
This commit is contained in:
parent
ebde7820a2
commit
2b791eb6a8
1 changed files with 3 additions and 3 deletions
|
@ -43,8 +43,8 @@ BASE_DEPS=(git tar curl grep dnsutils grepcidr whiptail net-tools bsdmainutils b
|
||||||
INSTALLED_PACKAGES=()
|
INSTALLED_PACKAGES=()
|
||||||
|
|
||||||
######## URLs ########
|
######## URLs ########
|
||||||
easyrsaCommit="8d1be1c9cf2333a8eee63c86191d27b2e5b63e8b"
|
easyrsaVer="3.1.0"
|
||||||
easyrsaUrl="https://github.com/OpenVPN/easy-rsa/tarball/${easyrsaCommit}"
|
easyrsaRel="https://github.com/OpenVPN/easy-rsa/releases/download/v${easyrsaVer}/EasyRSA-${easyrsaVer}.tgz"
|
||||||
|
|
||||||
######## Undocumented Flags. Shhh ########
|
######## Undocumented Flags. Shhh ########
|
||||||
runUnattended=false
|
runUnattended=false
|
||||||
|
@ -2013,7 +2013,7 @@ confOpenVPN(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get easy-rsa
|
# Get easy-rsa
|
||||||
curl -sSfL "${easyrsaUrl}" | $SUDO tar xz OpenVPN-easy-rsa-"${easyrsaCommit:0:7}"/easyrsa3 --one-top-level=/etc/openvpn/easy-rsa --strip-components 2
|
curl -sSfL "${easyrsaRel}" | $SUDO tar xz --one-top-level=/etc/openvpn/easy-rsa --strip-components 1
|
||||||
if ! test -s /etc/openvpn/easy-rsa/easyrsa; then
|
if ! test -s /etc/openvpn/easy-rsa/easyrsa; then
|
||||||
echo "$0: ERR: Failed to download EasyRSA."
|
echo "$0: ERR: Failed to download EasyRSA."
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue