Fix Gitea SSH probe still failing after info-arg fix — stderr was discarded
Gitea's SSH rejection banner (what the grep matches on) is written to
stderr, but the probe piped stdout only via 2>/dev/null — so the grep
never saw it, on any peer, even after dropping the bogus 'info' arg in
be6c16d. Confirmed live on HOST2: the exact probe command against HOST1's
Gitea prints the banner correctly with 2>&1, empty with 2>/dev/null.
Also corrects the CHANGES entry, which claimed a .txz-based install that
was never wired up — actual distribution is git-clone + symlink, not
packaged.
This commit is contained in:
+5
-5
@@ -17,10 +17,10 @@
|
|||||||
|
|
||||||
<CHANGES>
|
<CHANGES>
|
||||||
###2026.05.31
|
###2026.05.31
|
||||||
- Packaged release: web files now ship as a .txz that Unraid reinstalls to RAM on every boot
|
- Install via raw .plg URL (Gitea or GitHub) — same install script either way, Gitea → Tailscale peer → GITEA_DOMAIN → GitHub fallback chain
|
||||||
- Survives reboots with zero manual steps (no symlink, no go script) — fixes plugin vanishing after OS upgrades
|
- Web files served via symlink to Plugin/unraid/ on flash, recreated every boot — survives reboots, no array dependency
|
||||||
- Scripts are git-cloned to appdata on first install; web files stay on flash (~200KB)
|
- Scripts git-cloned to flash on first install only; updates handled in-UI (git pull) or the daily orchestrator, not by re-cloning on every boot
|
||||||
- Updates handled in-UI (git pull); the plugin no longer pulls on every boot
|
- build.sh packages a .txz for a possible future Community Apps release — not yet wired into install; current distribution is git-clone + symlink only
|
||||||
|
|
||||||
###2026.05.30
|
###2026.05.30
|
||||||
- First-run setup wizard: auto-detects hostname, creates master.conf + host conf from templates
|
- First-run setup wizard: auto-detects hostname, creates master.conf + host conf from templates
|
||||||
@@ -145,7 +145,7 @@ if [[ ! -d "$SCRIPTS_DIR/.git" ]]; then
|
|||||||
while IFS= read -r peer_ip; do
|
while IFS= read -r peer_ip; do
|
||||||
if ssh -i "$GITEA_SSH_KEY" -p "$SSH_PORT" \
|
if ssh -i "$GITEA_SSH_KEY" -p "$SSH_PORT" \
|
||||||
-o ConnectTimeout=3 -o StrictHostKeyChecking=no \
|
-o ConnectTimeout=3 -o StrictHostKeyChecking=no \
|
||||||
-o BatchMode=yes "git@${peer_ip}" 2>/dev/null | grep -q "varaverk\|Gitea\|gitea"; then
|
-o BatchMode=yes "git@${peer_ip}" 2>&1 | grep -q "varaverk\|Gitea\|gitea"; then
|
||||||
GITEA_IP="$peer_ip"
|
GITEA_IP="$peer_ip"
|
||||||
log "Gitea found on Tailscale peer $GITEA_IP"
|
log "Gitea found on Tailscale peer $GITEA_IP"
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user