Actualiser run.sh
This commit is contained in:
parent
cb9af03ffd
commit
308b4d882e
@ -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
21
run.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user