Actualiser run.sh

This commit is contained in:
the_booth 2024-08-28 23:21:59 +02:00
parent efc01ddd47
commit 4f272caab8

11
run.sh
View File

@ -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