testdistro.sh ne fait plus d'installation, uniquement les tests

This commit is contained in:
Djan GICQUEL 2022-05-26 10:14:20 +02:00
parent 025e3ec978
commit 58f75f3d0b
1 changed files with 5 additions and 36 deletions

View File

@ -24,41 +24,10 @@ elif [ -f /etc/SuSe-release ]; then
elif [ -f /etc/redhat-release ]; then
# Older Red Hat, CentOS, etc.
OS=Redhat
else
echo "La distribution n'a pas été détecté."
echo "Installez les paquets \"borgbackup\" et \"zenity\" manuellement."
exit
fi
echo "OS = $OS"
if [[ "$OS" =~ "Fedora" ]];then
echo "Fedora detecté"
sudo dnf install borgbackup zenity
elif [[ "$OS" =~ Mageia ]];then
# non fonctionnel sur Mageia 8, le paquet borgbackup n'existe pas encore
echo "Mageia detecté"
su -c "dnf install borgbackup zenity"
elif [[ "$OS" =~ Debian ]];then
echo "Debian detecté"
su -c apt install -y borgbackup zenity
elif [[ "$OS" =~ Ubuntu ]];then
echo "Ubuntu detecté"
sudo apt install -y borgbackup zenity
elif [[ "$OS" =~ "Linux Mint" ]];then
echo "Linux Mint detecté"
sudo apt install -y borgbackup zenity
elif [[ "$OS" =~ Manjaro ]];then
echo "Manjaro detecté"
sudo pacman -Sy borgbackup zenity
else
echo "La distribution n'a pas été détecté."
echo "Installez les paquets \"borgbackup\" et \"zenity\" manuellement."
exit
fi
if [ "$OS" = "" ];then
echo "La distribution n'a pas été détecté."
echo "Installez les paquets \"borgbackup\" et \"zenity\" manuellement."
exit
fi