Actualiser run.sh

This commit is contained in:
the_booth 2024-08-28 23:13:45 +02:00
parent cb9af03ffd
commit 308b4d882e
2 changed files with 21 additions and 9 deletions

View File

@ -1,9 +0,0 @@
#!/bin/bash
apt-get update
apt-get install sudo curl
# Installation de Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
mkdir -p /opt/docker/dns

21
run.sh Normal file
View File

@ -0,0 +1,21 @@
#!/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