restore git-tracked files before starting services

Protects against a previous failed run where services started with
encrypted/missing files and overwrote them (e.g. NPM database).
This commit is contained in:
2026-03-13 13:10:34 -04:00
parent 93b940fd76
commit 9fdee2e54b
+3
View File
@@ -91,6 +91,9 @@ chmod +x "$REPO_DIR/scripts/"*.sh
echo "==> Logging into Gitea registry..." echo "==> Logging into Gitea registry..."
echo "Run manually: docker login git.timothykim.net" echo "Run manually: docker login git.timothykim.net"
echo "==> Restoring git-tracked files..."
cd "$REPO_DIR" && git checkout -- .
echo "==> Starting services..." echo "==> Starting services..."
cd "$REPO_DIR/docker/nginx" && docker compose up -d cd "$REPO_DIR/docker/nginx" && docker compose up -d
cd "$REPO_DIR/docker/timothykim.net" && docker compose up -d cd "$REPO_DIR/docker/timothykim.net" && docker compose up -d