21 lines
371 B
Bash
21 lines
371 B
Bash
#!/bin/bash
|
|
|
|
# Récupère la version du système
|
|
os_system=`cat /etc/os-release`
|
|
|
|
function debian() {
|
|
apt-get update
|
|
apt-get install sudo curl
|
|
}
|
|
|
|
|
|
if [[ $string == *"ID=Debian"* ]]; then
|
|
debian();
|
|
fi
|
|
|
|
# Installation de Docker
|
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
|
sudo sh get-docker.sh
|
|
|
|
# Démarrage du docker compose
|
|
docker compose up -d --build |