]> Creatis software - creaToolsTools.git/commitdiff
#3424 creaToolsTools Feature New Normal - Clean Install Linux
authorEduardo DAVILA <davila@localhost.localdomain>
Fri, 15 May 2020 06:14:37 +0000 (08:14 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Fri, 15 May 2020 06:14:37 +0000 (08:14 +0200)
Linux/scripts/Install-Creatools-Bin.sh

index 3d569fdb2ef60277ff5550537526da22d05b9610..968e26e5dd4cfbe542cc1079dc5393c74512776b 100755 (executable)
@@ -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"