Fix: ensure_system immer am Anfang – sbin kann nie mehr veralten

- ensure_system() jetzt direkt nach git_safe/git_dirty_check aufgerufen
- Sbin wird bei JEDEM Update-Aufruf aktualisiert, nicht nur auf bestimmten Pfaden
- Root-Ursache: alte sbin (v1.0.137, April 23) hatte kein ensure_system → alle
  Fixes in scripts/update.sh wurden nie auf dem Server ausgeführt

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.324
boban 2026-04-26 20:25:13 +02:00
parent ad85bc0326
commit b721b7b0df
1 changed files with 3 additions and 0 deletions

View File

@ -299,6 +299,9 @@ exec > >(tee -a "$LOG_FILE") 2>&1
git_safe
git_dirty_check
# Sbin + Sudoers immer aktuell halten — unabhängig vom Update-Pfad
ensure_system
# -------- Git: neuen Stand holen ---------------------------------------------
echo "[i] Prüfe Repository …"
OLD_REV="$(git -C "${APP_DIR}" rev-parse HEAD)"