From c2597cb5169252624600e9bf8eae641b2515a8cb Mon Sep 17 00:00:00 2001 From: Gmer4Lfe Date: Sat, 4 Jul 2026 00:39:58 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20Tailscale=20peer=20discovery=20in=20plugi?= =?UTF-8?q?n=20installer=20=E2=80=94=20drop=20python3=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python3 isn't installed on stock Unraid (confirmed absent on HOST1), so the JSON-parsing pipeline silently produced zero peers every time, making the Tailscale fallback tier a permanent no-op since it was written. Replaced with plain 'tailscale status' + awk, matching the pattern common.sh already uses. --- Plugin/varaverk.plg | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Plugin/varaverk.plg b/Plugin/varaverk.plg index a8fa99c..541cc5f 100644 --- a/Plugin/varaverk.plg +++ b/Plugin/varaverk.plg @@ -150,10 +150,8 @@ if [[ ! -d "$SCRIPTS_DIR/.git" ]]; then log "Gitea found on Tailscale peer $GITEA_IP" break fi - done < <(tailscale status --json 2>/dev/null | \ - python3 -c "import json,sys; d=json.load(sys.stdin); \ - [print(v['TailscaleIPs'][0]) for v in d.get('Peer',{}).values() \ - if v.get('TailscaleIPs')]" 2>/dev/null) + done < <(tailscale status 2>/dev/null | \ + awk '{print $1}' | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$') fi if [[ -z "$GITEA_IP" && -n "$GITEA_DOMAIN" ]]; then