forçage des installation pour les distros testées

This commit is contained in:
Djan GICQUEL 2021-08-06 12:09:12 +02:00
parent 9f0f782ff0
commit 0c9f723989

View File

@ -32,28 +32,28 @@ fi
echo "OS = $OS" echo "OS = $OS"
if [[ "$OS" =~ "Fedora" ]];then #OK if [[ "$OS" =~ "Fedora" ]];then
echo "Fedora detecté" echo "Fedora detecté"
sudo dnf install borgbackup zenity sudo dnf install borgbackup zenity
elif [[ "$OS" =~ Mageia ]];then #OK elif [[ "$OS" =~ Mageia ]];then
# non fonctionnel sur Mageia 8, le paquet borgbackup n'existe pas encore # non fonctionnel sur Mageia 8, le paquet borgbackup n'existe pas encore
echo "Mageia detecté" echo "Mageia detecté"
su -c "dnf install borgbackup zenity" su -c "dnf install borgbackup zenity"
elif [[ "$OS" =~ Debian ]];then #OK elif [[ "$OS" =~ Debian ]];then
echo "Debian detecté" echo "Debian detecté"
sudo apt-get install borgbackup zenity su -c apt install -y borgbackup zenity
elif [[ "$OS" =~ Ubuntu ]];then #?? elif [[ "$OS" =~ Ubuntu ]];then
echo "Ubuntu detecté" echo "Ubuntu detecté"
#sudo apt-get install borgbackup zenity sudo apt install -y borgbackup zenity
elif [[ "$OS" =~ "Linux Mint" ]];then #OK elif [[ "$OS" =~ "Linux Mint" ]];then
echo "Linux Mint detecté" echo "Linux Mint detecté"
sudo apt-get install borgbackup zenity sudo apt install -y borgbackup zenity
elif [[ "$OS" =~ Manjaro ]];then #OK elif [[ "$OS" =~ Manjaro ]];then
echo "Manjaro detecté" echo "Manjaro detecté"
sudo pacman -Sy borgbackup zenity sudo pacman -Sy borgbackup zenity