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

@@ -18,6 +18,9 @@ set -e
source "$(dirname "$0")/utils.sh"
init_paths
# Source git utilities
source "$SCRIPT_DIR/git.sh"
export DEBIAN_FRONTEND=noninteractive
# System Update
@@ -39,8 +42,7 @@ apt install -y \
apt-transport-https python3-dotenv python3-yaml
# Configure git to use rebase on pull (prevents merge commits during updates)
log_info "Configuring git pull strategy..."
git config --global pull.rebase true
git_configure_pull_rebase
# Configuring Firewall (UFW)
log_subheader "Firewall (UFW)"