From 0c9f723989266a3a0dd0d5b5288e862695e88f43 Mon Sep 17 00:00:00 2001 From: Djan GICQUEL <> Date: Fri, 6 Aug 2021 12:09:12 +0200 Subject: [PATCH] =?UTF-8?q?for=C3=A7age=20des=20installation=20pour=20les?= =?UTF-8?q?=20distros=20test=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testdistro.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/testdistro.sh b/testdistro.sh index fd11ab7..98bcff0 100755 --- a/testdistro.sh +++ b/testdistro.sh @@ -32,28 +32,28 @@ fi echo "OS = $OS" -if [[ "$OS" =~ "Fedora" ]];then #OK +if [[ "$OS" =~ "Fedora" ]];then echo "Fedora detecté" 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 echo "Mageia detecté" su -c "dnf install borgbackup zenity" -elif [[ "$OS" =~ Debian ]];then #OK +elif [[ "$OS" =~ Debian ]];then 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é" -#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é" -sudo apt-get install borgbackup zenity +sudo apt install -y borgbackup zenity -elif [[ "$OS" =~ Manjaro ]];then #OK +elif [[ "$OS" =~ Manjaro ]];then echo "Manjaro detecté" sudo pacman -Sy borgbackup zenity