From 4f272caab8a0b7b2175b3366b319013ce4920886 Mon Sep 17 00:00:00 2001 From: the_booth Date: Wed, 28 Aug 2024 23:21:59 +0200 Subject: [PATCH] Actualiser run.sh --- run.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/run.sh b/run.sh index 53d61e9..8188d62 100644 --- a/run.sh +++ b/run.sh @@ -2,17 +2,26 @@ # Récupère la version du système os_system=`cat /etc/os-release` +os_format=${os_system,,} function debian() { apt-get update apt-get install sudo curl } +function fedora() { + dnf update + dnf install sudo curl +} -if [[ $string == *"ID=Debian"* ]]; then +# Install Debian pour : Debian, Ubuntu, Kali, ParrotOS +if [[ $os_format == *"debian"* ]]; then debian(); +elif [[ $os_format == *"fedora"* ]]; then + fedora(); fi + # Installation de Docker curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh