mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-20 03:40:17 +00:00
Update EasyRSA and unattended upgrades config
- EasyRSA 3.0.6 -> 3.0.7 - Unattended upgrades config 1.16 -> 2.4
This commit is contained in:
parent
ad363b717b
commit
8e514a5f74
1 changed files with 9 additions and 5 deletions
|
@ -48,11 +48,11 @@ BASE_DEPS=(git tar wget curl grep dnsutils whiptail net-tools bsdmainutils)
|
||||||
INSTALLED_PACKAGES=()
|
INSTALLED_PACKAGES=()
|
||||||
|
|
||||||
######## URLs ########
|
######## URLs ########
|
||||||
easyrsaVer="3.0.6"
|
easyrsaVer="3.0.7"
|
||||||
easyrsaRel="https://github.com/OpenVPN/easy-rsa/releases/download/v${easyrsaVer}/EasyRSA-unix-v${easyrsaVer}.tgz"
|
easyrsaRel="https://github.com/OpenVPN/easy-rsa/releases/download/v${easyrsaVer}/EasyRSA-${easyrsaVer}.tgz"
|
||||||
|
|
||||||
# Raspbian's unattended-upgrades package downloads Debian's config, so this is the link for the proper config
|
# Raspbian's unattended-upgrades package downloads Debian's config, so this is the link for the proper config
|
||||||
UNATTUPG_RELEASE="1.16"
|
UNATTUPG_RELEASE="2.4"
|
||||||
UNATTUPG_CONFIG="https://github.com/mvo5/unattended-upgrades/archive/${UNATTUPG_RELEASE}.tar.gz"
|
UNATTUPG_CONFIG="https://github.com/mvo5/unattended-upgrades/archive/${UNATTUPG_RELEASE}.tar.gz"
|
||||||
|
|
||||||
# Fallback url for the OpenVPN key
|
# Fallback url for the OpenVPN key
|
||||||
|
@ -1811,8 +1811,12 @@ confOpenVPN(){
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Get easy-rsa
|
# Get easy-rsa
|
||||||
wget -qO- "${easyrsaRel}" | $SUDO tar xz --directory /etc/openvpn
|
wget -qO- "${easyrsaRel}" | $SUDO tar xz --one-top-level=/etc/openvpn/easy-rsa --strip-components 1
|
||||||
$SUDO mv /etc/openvpn/EasyRSA-v${easyrsaVer} /etc/openvpn/easy-rsa
|
if ! test -s /etc/openvpn/easy-rsa/easyrsa; then
|
||||||
|
echo "$0: ERR: Failed to download EasyRSA."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# fix ownership
|
# fix ownership
|
||||||
$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
|
||||||
|
|
Loading…
Reference in a new issue