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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user