]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/Install-Creatools-Bin.sh
#3044 creaToolsTools Bug New Normal - Fedora 24 ThirdParty library conflict with...
[creaToolsTools.git] / Linux / scripts / Install-Creatools-Bin.sh
index 7f84f8f36701099f6c89bab39a200eafe487ff97..3d569fdb2ef60277ff5550537526da22d05b9610 100755 (executable)
@@ -28,7 +28,10 @@ function getDistrib {
     local OS=`uname`
 
       if [ "$OS" == Darwin ] ; then OS=MacOS;
-    elif [ "$OS" == Linux  ] ; then OS=`awk 'NR==1{print $1}' /etc/issue`
+##EED2016-10-15    
+##    elif [ "$OS" == Linux  ] ; then OS=$(lsb_release -i | awk '{print $3}')
+       elif [ "$OS" == Linux  ] ; then OS=`awk 'NR==1{print $1}' /etc/system-release`
+
     else OS=""
     fi
 # checkDistrib $OS
@@ -42,21 +45,21 @@ OperatingSystem=`getDistrib`
   Mandriva)
      echo Root password:
      su -c "urpmi aria2"
-         downloadCpmmand=aria2 
+         downloadCommand=aria2c 
      ;;
   Fedora)
      echo Root password:
      su -c "yum install aria2 -y"
-         downloadCpmmand=aria2 
+         downloadCommand=aria2c
      ;;
   Ubuntu)
      echo Root password:
      su -c "apt-get --yes install wget"
-         downloadCpmmand=wget 
+         downloadCommand=wget 
      ;;
   MacOS)
      port install curl -y
-         downloadCpmmand=curl 
+         downloadCommand=curl 
      ;;
   *)
      echo " '$OperatingSystem' : Unknown (for us...) Operating Sytem "
@@ -69,7 +72,7 @@ CREATOOLSBINDIR=Creatools-Bin
 rm -rf $CREATOOLSBINDIR
 mkdir $CREATOOLSBINDIR
 cd $CREATOOLSBINDIR
-$downloadCpmmand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
+$downloadCommand http://www.creatis.insa-lyon.fr/software/public/creatools/creaTools/creatools-Linux-Bin.sh
 source creatools-Linux-Bin.sh
 cd ..