mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-22 04:40:16 +00:00
Use metapackage to install kernel headers on Ubuntu
The ‘linux-headers-generic’ package is preferred over the version-specific headers package as the generic will be automatically updated with the kernel, whereas the other will not.
This commit is contained in:
parent
66cf44e774
commit
fc9a9f5ab7
1 changed files with 2 additions and 2 deletions
|
@ -246,7 +246,7 @@ distroCheck(){
|
||||||
source /etc/os-release
|
source /etc/os-release
|
||||||
PLAT=$(awk '{print $1}' <<< "$NAME")
|
PLAT=$(awk '{print $1}' <<< "$NAME")
|
||||||
VER="$VERSION_ID"
|
VER="$VERSION_ID"
|
||||||
declare -A VER_MAP=(["9"]="stretch" ["10"]="buster" ["16.04"]="xenial" ["18.04"]="bionic")
|
declare -A VER_MAP=(["9"]="stretch" ["10"]="buster" ["16.04"]="xenial" ["18.04"]="bionic")
|
||||||
OSCN=${VER_MAP["${VER}"]}
|
OSCN=${VER_MAP["${VER}"]}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1100,7 +1100,7 @@ installWireGuard(){
|
||||||
echo "::: Installing WireGuard from PPA... "
|
echo "::: Installing WireGuard from PPA... "
|
||||||
$SUDO add-apt-repository ppa:wireguard/wireguard -y
|
$SUDO add-apt-repository ppa:wireguard/wireguard -y
|
||||||
$SUDO ${UPDATE_PKG_CACHE}
|
$SUDO ${UPDATE_PKG_CACHE}
|
||||||
PIVPN_DEPS=(qrencode wireguard wireguard-tools wireguard-dkms linux-headers-$(uname -r))
|
PIVPN_DEPS=(qrencode wireguard wireguard-tools wireguard-dkms linux-headers-generic)
|
||||||
installDependentPackages PIVPN_DEPS[@]
|
installDependentPackages PIVPN_DEPS[@]
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue