MongoDB plan

This commit is contained in:
Ramis
2026-06-28 00:41:05 -07:00
parent 6083f45f05
commit 1adb8413b5
14 changed files with 1299 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
REPO="/home/ramis/Programming/podman"
LOG="/home/ramis/Programming/podman/scripts/auto-pull.log"
cd "$REPO" || exit 1
# Stash any local changes, pull, pop
git fetch origin main 2>>"$LOG"
LOCAL=$(git rev-parse HEAD)
REMOTE=$(git rev-parse origin/main)
if [ "$LOCAL" != "$REMOTE" ]; then
echo "[$(date)] Pulling: $LOCAL -> $REMOTE" >> "$LOG"
git pull --ff-only origin main >> "$LOG" 2>&1
else
echo "[$(date)] Up to date" >> "$LOG"
fi