10 lines
291 B
Bash
10 lines
291 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 https://gitlab.com/ton-utilisateur/ton-depot.git /usr/share/nginx/html
|
|
fi
|