From 285fde9b6ce36e351c7c4e91578749d1dc6cc857 Mon Sep 17 00:00:00 2001 From: John Mertz Date: Thu, 5 Oct 2023 18:36:53 +0000 Subject: [PATCH] Allow usage in Distrobox --- setup-wireguard.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup-wireguard.sh b/setup-wireguard.sh index b29b228..72c024f 100755 --- a/setup-wireguard.sh +++ b/setup-wireguard.sh @@ -18,6 +18,8 @@ sudo apt update if grep -Pq '^arm' <<< $(uname -m); then sudo apt install -y wireguard wireguard-dkms wireguard-tools raspberrypi-kernel raspberrypi-kernel-headers resolvconf +elif [ -f "/run/.containerenv" ]; then + sudo apt install -y wireguard wireguard-tools resolvconf else sudo apt install -y wireguard wireguard-tools linux-headers-$(uname -r) resolvconf fi