From c462c216dac63a4ff8086252c72f6866fcb6d5de Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Fri, 22 Sep 2023 01:45:01 -0600 Subject: [PATCH] Updated Deployment Script --- repo_watcher.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repo_watcher.sh b/repo_watcher.sh index 51a1a70..cf23585 100644 --- a/repo_watcher.sh +++ b/repo_watcher.sh @@ -15,10 +15,13 @@ while true; do # Clone the repo if it doesn't exist if [ ! -d "repo" ]; then + echo "Repository $REPO_URL doesn't exist locally - Downloading..." git clone $REPO_URL repo fi cd repo + rsync -av --delete ./ /DATA + curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL # Fetch the latest changes git fetch origin main