Fix: Critical bug - cluster restore showing success with 0 databases restored
All checks were successful
CI/CD / Test (push) Successful in 1m14s
CI/CD / Lint (push) Successful in 1m25s
CI/CD / Build & Release (push) Successful in 3m23s

CRITICAL FIXES:
- Add check for successCount == 0 to properly fail when no databases restored
- Fix tryRestartPostgreSQL to use non-interactive sudo (-n flag)
- Add 10-second timeout per restart attempt to prevent blocking
- Try pg_ctl directly for postgres user (no sudo needed)
- Set stdin to nil to prevent sudo from waiting for password input

This fixes the issue where cluster restore showed success but no databases
were actually restored due to sudo blocking on password prompts.
This commit is contained in:
2026-01-16 14:03:02 +01:00
parent 62ddc57fb7
commit 3201f0fb6a
2 changed files with 32 additions and 15 deletions

View File

@@ -4,8 +4,8 @@ This directory contains pre-compiled binaries for the DB Backup Tool across mult
## Build Information
- **Version**: 3.42.34
- **Build Time**: 2026-01-16_12:38:18_UTC
- **Git Commit**: 510175f
- **Build Time**: 2026-01-16_12:52:56_UTC
- **Git Commit**: 62ddc57
## Recent Updates (v1.1.0)
- ✅ Fixed TUI progress display with line-by-line output