From 728595928b5c4b0fad4b2c0a5c5fab86229ee405 Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Sat, 20 Jun 2020 13:14:19 +0800 Subject: [PATCH] Alter the args for apt-get in func install_wg_3 (#67) Do not install recommended packages when installing the `wireguard-tools` on a Debian-based OS running kernel newer than 5.6 --- wireguard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard.sh b/wireguard.sh index 0098097..4826031 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -372,13 +372,13 @@ install_wg_3() { ubuntu) _error_detect "add-apt-repository ppa:wireguard/wireguard" _error_detect "apt-get update" - _error_detect "apt-get -y install wireguard-tools" + _error_detect "apt-get -y install --no-install-recommends wireguard-tools" ;; debian) echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable _error_detect "apt-get update" - _error_detect "apt-get -y install wireguard-tools" + _error_detect "apt-get -y install --no-install-recommends wireguard-tools" ;; fedora) _error_detect "dnf -y copr enable jdoss/wireguard"