testdistro.sh ne fait plus d'installation, uniquement les tests
This commit is contained in:
parent
025e3ec978
commit
58f75f3d0b
@ -24,40 +24,9 @@ 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
|
||||
fi
|
||||
|
||||
if [ "$OS" = "" ];then
|
||||
echo "La distribution n'a pas été détecté."
|
||||
echo "Installez les paquets \"borgbackup\" et \"zenity\" manuellement."
|
||||
exit
|
||||
|
Loading…
Reference in New Issue
Block a user