From a66c631e16d7050a17339dcc9a69fbee0ef9a81a Mon Sep 17 00:00:00 2001 From: lion Date: Tue, 7 Jan 2025 21:17:26 +0100 Subject: [PATCH] Update wireguard.sh ensure repos are update and thus existing --- wireguard.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wireguard.sh b/wireguard.sh index b6a329f..2b3fbdc 100644 --- a/wireguard.sh +++ b/wireguard.sh @@ -7,8 +7,8 @@ test "$(id -u)" = 0 || exec sudo "$0" # if needed install -dpkg -l | grep wireguard-tools || apt-get install -y wireguard-tools -dpkg -l | grep python3-qrcodegen || apt-get install -y python3-qrcodegen +dpkg -l | grep wireguard-tools || { apt-get update; apt-get install -y wireguard-tools; } +dpkg -l | grep python3-qrcodegen || { apt-get update; apt-get install -y python3-qrcodegen; } test -f /bin/qrcode || { cat >/bin/qrcode << 'PYTHON' #!/usr/bin/python3