15 lines
328 B
Bash
15 lines
328 B
Bash
|
|
#!/bin/sh
|
||
|
|
cd /app
|
||
|
|
if [ -d ".git" ]; then
|
||
|
|
echo "Updating repository..."
|
||
|
|
git pull origin main
|
||
|
|
else
|
||
|
|
echo "Cloning repository..."
|
||
|
|
git clone http://lab.canguidev.fr/cangui/manga-backend-server.git /app
|
||
|
|
fi
|
||
|
|
|
||
|
|
# Supprimer les fichiers inutiles pour l'application
|
||
|
|
rm -f Dockerfile
|
||
|
|
rm -f docker-compose.yml
|
||
|
|
rm -f update.sh
|