10 lines
287 B
Bash
10 lines
287 B
Bash
#!/bin/sh
|
|
cd /usr/share/nginx/html
|
|
if [ -d ".git" ]; then
|
|
echo "Updating repository..."
|
|
git pull origin main # Met à jour les fichiers à partir du dépôt GitLab
|
|
else
|
|
echo "Cloning repository..."
|
|
git clone http://lab.canguidev.fr/cangui/canguidev.git /usr/share/nginx/html
|
|
fi
|