From 9fdee2e54b59e9b871c3a2cc78e4db7aa580ff7d Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Fri, 13 Mar 2026 13:10:34 -0400 Subject: [PATCH] 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). --- setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.sh b/setup.sh index 71647a6..fc46e0a 100644 --- a/setup.sh +++ b/setup.sh @@ -91,6 +91,9 @@ chmod +x "$REPO_DIR/scripts/"*.sh echo "==> Logging into Gitea registry..." echo "Run manually: docker login git.timothykim.net" +echo "==> Restoring git-tracked files..." +cd "$REPO_DIR" && git checkout -- . + echo "==> Starting services..." cd "$REPO_DIR/docker/nginx" && docker compose up -d cd "$REPO_DIR/docker/timothykim.net" && docker compose up -d