Updated Deployment Script

This commit is contained in:
Nicole Rappe 2023-09-22 01:45:01 -06:00
parent 1017a471b2
commit c462c216da

View File

@ -15,10 +15,13 @@ while true; do
# Clone the repo if it doesn't exist # Clone the repo if it doesn't exist
if [ ! -d "repo" ]; then if [ ! -d "repo" ]; then
echo "Repository $REPO_URL doesn't exist locally - Downloading..."
git clone $REPO_URL repo git clone $REPO_URL repo
fi fi
cd repo cd repo
rsync -av --delete ./ /DATA
curl -d "Repository $REPO_URL doesn't exist locally - Downloading..." $NTFY_URL
# Fetch the latest changes # Fetch the latest changes
git fetch origin main git fetch origin main