Skip to content

Commit

Permalink
Revert "Debian/Ubuntu: install Linux headers which survive `apt upgra…
Browse files Browse the repository at this point in the history
…de`"
pstadler authored Nov 20, 2018
1 parent a3f682f commit 7cc2cb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/wireguard/scripts/install-kernel-headers.sh
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@
set -e

# Install kernel headers with apt
if apt-cache show -q linux-headers-generic > /dev/null 2>&1 /dev/null; then
if apt-cache show -q linux-headers-$(uname -r) > /dev/null 2>&1 /dev/null; then
echo "Installing Linux headers using apt"
apt-get -yq install linux-headers-generic
apt-get -yq install linux-headers-$(uname -r)
exit $?
fi

0 comments on commit 7cc2cb4

Please sign in to comment.