From 1d3b46ecd24af2f2f395aafa5dfde190cc9ea39f Mon Sep 17 00:00:00 2001 From: the_booth Date: Wed, 28 Aug 2024 22:07:46 +0200 Subject: [PATCH] Actualiser install_deps.sh --- install_deps.sh | 51 +++---------------------------------------------- 1 file changed, 3 insertions(+), 48 deletions(-) diff --git a/install_deps.sh b/install_deps.sh index 151ec93..3e1f0ec 100644 --- a/install_deps.sh +++ b/install_deps.sh @@ -1,51 +1,6 @@ #!/bin/bash -# Fonction pour Debian/Ubuntu -function install_debian() { - echo "Installation sur Debian/Ubuntu..." - apt-get update - apt-get install sudo bind apache2 -y - mkdir /var/log/bind - touch /var/log/bind/bind.log - chmod 750 /var/log/bind/bind.log - chown bind:bind /var/log/bind/bind.log -} +# Installation de Docker +curl -fsSL https://get.docker.com -o get-docker.sh +sudo sh get-docker.sh -# Fonction pour Fedora/Oracle -function install_debian() { - echo "Installation sur Fedora/Oracle..." - echo "A venir" -} - - - - -# Détection du système d'exploitation -OS="$(uname -s)" -case "$OS" in - Linux) - DISTRO=$(lsb_release -i | awk '{print tolower($3)}') - case "$DISTRO" in - debian|ubuntu) - install_debian - ;; - fedora) - install_fedora - ;; - arch) - install_arch - ;; - *) - echo "Distribution non supportée : $DISTRO" - ;; - esac - ;; - MINGW*) - install_htop_mingw - ;; - *) - error_exit "Système d'exploitation non supporté : $OS" - ;; -esac - -echo "Installation terminée avec succès."