refactor(update): replace git pull with fetch + reset for reliable sync

extract git utilities into scripts/git.sh module. this approach handles
accidental local commits that would cause rebase conflicts during updates.
This commit is contained in:
Yury Kossakovsky
2025-12-26 09:29:53 -07:00
parent 0709e3b6d3
commit 9b252a1287
7 changed files with 173 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
# =============================================================================
# apply_update.sh - Service update and restart logic
# =============================================================================
# Called by update.sh after git pull. Performs the actual service updates:
# Called by update.sh after git sync. Performs the actual service updates:
# 1. Updates .env with any new variables (03_generate_secrets.sh --update)
# 2. Runs service selection wizard (04_wizard.sh) to update profiles
# 3. Configures services (05_configure_services.sh)