Merge pull request #963 from MichaIng/patch-1

Apply the x86-only OpenVPN repo on x86 systems only
This commit is contained in:
Orazio 2020-02-26 09:46:25 +01:00 committed by GitHub
commit 72ff65cb80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1062,7 +1062,10 @@ installOpenVPN(){
echo "::: Installing OpenVPN from Debian package... "
# Use x86-only OpenVPN APT repo on x86 Debian/Ubuntu systems
if [ "$PLAT" = "Debian" ] || [ "$PLAT" = "Ubuntu" ]; then
local DPKG_ARCH="$(dpkg --print-architecture)"
if [ "$DPKG_ARCH" = "amd64" ] || [ "$DPKG_ARCH" = "i386" ]; then
# gnupg is used by apt-key to import the openvpn GPG key into the
# APT keyring
PIVPN_DEPS=(gnupg)
@ -1086,6 +1089,7 @@ installOpenVPN(){
# shellcheck disable=SC2086
$SUDO ${UPDATE_PKG_CACHE} &> /dev/null & spinner $!
fi
fi
# grepcidr is used to redact IPs in the debug log whereas expect is used
# to feed easy-rsa with passwords