10 lines
298 B
Bash
10 lines
298 B
Bash
#!/bin/sh
|
|
# Répertoire git : /usr/share/nginx/html (sparse checkout limité à content/).
|
|
cd /usr/share/nginx/html || exit 1
|
|
|
|
while true; do
|
|
echo "Pulling latest changes from origin/main (sparse content/)..."
|
|
git pull origin main || echo "git pull failed, will retry in 300s"
|
|
sleep 300
|
|
done
|