Actualiser run.sh
This commit is contained in:
parent
efc01ddd47
commit
4f272caab8
11
run.sh
11
run.sh
@ -2,17 +2,26 @@
|
|||||||
|
|
||||||
# Récupère la version du système
|
# Récupère la version du système
|
||||||
os_system=`cat /etc/os-release`
|
os_system=`cat /etc/os-release`
|
||||||
|
os_format=${os_system,,}
|
||||||
|
|
||||||
function debian() {
|
function debian() {
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install sudo curl
|
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();
|
debian();
|
||||||
|
elif [[ $os_format == *"fedora"* ]]; then
|
||||||
|
fedora();
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# Installation de Docker
|
# Installation de Docker
|
||||||
curl -fsSL https://get.docker.com -o get-docker.sh
|
curl -fsSL https://get.docker.com -o get-docker.sh
|
||||||
sudo sh get-docker.sh
|
sudo sh get-docker.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user