Updated Deployment Script
This commit is contained in:
parent
1017a471b2
commit
c462c216da
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user