canguidev/update.sh

10 lines
287 B
Bash
Raw Normal View History

2024-10-10 08:50:01 +00:00
#!/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..."
2024-10-10 08:54:52 +00:00
git clone http://lab.canguidev.fr/cangui/canguidev.git /usr/share/nginx/html
2024-10-10 08:50:01 +00:00
fi