Fix Tailscale peer discovery in plugin installer — drop python3 dependency
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.
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user