From: Eduardo DAVILA Date: Fri, 15 May 2020 06:14:37 +0000 (+0200) Subject: #3424 creaToolsTools Feature New Normal - Clean Install Linux X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=1d7abfa078736df5f7f94dac61ac93f4877aaefb;p=creaToolsTools.git #3424 creaToolsTools Feature New Normal - Clean Install Linux --- diff --git a/Linux/scripts/Install-Creatools-Bin.sh b/Linux/scripts/Install-Creatools-Bin.sh index 3d569fd..968e26e 100755 --- a/Linux/scripts/Install-Creatools-Bin.sh +++ b/Linux/scripts/Install-Creatools-Bin.sh @@ -48,10 +48,13 @@ OperatingSystem=`getDistrib` downloadCommand=aria2c ;; Fedora) - echo Root password: - su -c "yum install aria2 -y" - downloadCommand=aria2c - ;; + ARIA2EXIST=$(rpm -qa | grep aria2 | wc -l) + if [ "$ARIA2EXIST" -eq '1' ]; then + echo Root password: + su -c "dnf install aria2 -y" + fi + downloadCommand=aria2c + ;; Ubuntu) echo Root password: su -c "apt-get --yes install wget"