From 6857f834349f2723ba7a783205327df24bbd7562 Mon Sep 17 00:00:00 2001 From: Domenik Bildhauer Date: Sun, 27 Sep 2026 20:19:34 +0200 Subject: [PATCH] Improve NetBird installation --- install/07-netbird.sh | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/install/07-netbird.sh b/install/07-netbird.sh index d375b5c..ba88b04 100755 --- a/install/07-netbird.sh +++ b/install/07-netbird.sh @@ -4,17 +4,30 @@ set -e echo "==> Installiere NetBird..." -curl -fsSL https://pkgs.netbird.io/install.sh | sh +if command -v netbird >/dev/null 2>&1; then + echo "NetBird ist bereits installiert." + exit 0 +fi + +TMP_SCRIPT="$(mktemp)" + +curl -fsSL https://pkgs.netbird.io/install.sh -o "$TMP_SCRIPT" + +chmod +x "$TMP_SCRIPT" + +bash "$TMP_SCRIPT" + +rm -f "$TMP_SCRIPT" echo echo "==============================================" -echo "NetBird wurde installiert." +echo "NetBird wurde erfolgreich installiert." echo -echo "Jetzt anmelden mit:" +echo "Anmelden:" echo echo " netbird up" echo -echo "Oder bei einem Self-Hosted-Server:" +echo "Oder Self-Hosted:" echo echo " netbird up --management-url https://DEINE-DOMAIN" echo