From 76af7cfcfd5295c4b23954d3c0cfb0d1c1210bcc Mon Sep 17 00:00:00 2001 From: Eduardo DAVILA Date: Wed, 20 May 2015 09:31:58 +0200 Subject: [PATCH] 2493 creaToolsTools Feature New Normal - Prepare and Install binary CreaTools version - Linux --- Linux/scripts/ThirdParty-install-Base-Stuff.sh | 6 +++++- Linux/scripts/ThirdParty-install-ITK.sh | 3 ++- Linux/scripts/ThirdParty-install-gdcm.sh | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Linux/scripts/ThirdParty-install-Base-Stuff.sh b/Linux/scripts/ThirdParty-install-Base-Stuff.sh index 5086380..43401dc 100644 --- a/Linux/scripts/ThirdParty-install-Base-Stuff.sh +++ b/Linux/scripts/ThirdParty-install-Base-Stuff.sh @@ -34,6 +34,10 @@ echo "OperatingSystem = $OperatingSystem" else # must log as root echo "Please enter the root passwd to add necessary packages:"; - su -c "bash ThirdParty-install-Base-rpm.sh $OperatingSystem" + if [ "Ubuntu" == $OperatingSystem ] ; then + sudo "bash ThirdParty-install-Base-rpm.sh $OperatingSystem" + else + su -c "bash ThirdParty-install-Base-rpm.sh $OperatingSystem" + if fi diff --git a/Linux/scripts/ThirdParty-install-ITK.sh b/Linux/scripts/ThirdParty-install-ITK.sh index 89b2ac9..08d0f7c 100644 --- a/Linux/scripts/ThirdParty-install-ITK.sh +++ b/Linux/scripts/ThirdParty-install-ITK.sh @@ -126,7 +126,8 @@ fi then curl -O http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/$itkfile else - wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/$itkfile +##EED19mai2015 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/$itkfile + wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/$itkfile fi tar -xzvf $itkfile diff --git a/Linux/scripts/ThirdParty-install-gdcm.sh b/Linux/scripts/ThirdParty-install-gdcm.sh index d89acab..29319a8 100644 --- a/Linux/scripts/ThirdParty-install-gdcm.sh +++ b/Linux/scripts/ThirdParty-install-gdcm.sh @@ -103,7 +103,8 @@ fi # MacOS, clever enough to understand it *has* to uncompress, doesn't understand tar -z :-( tar -xvf gdcm_05_Mai_2011.tar.gz else - wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz +##19mai2015 wget http://www.creatis.insa-lyon.fr/software/public/creatools/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz + wget http://www.creatis.insa-lyon.fr/~davila/creatools_back_site/crea_ThirdParty_Libraries/source/gdcm_05_Mai_2011.tar.gz tar -xvzf gdcm_05_Mai_2011.tar.gz fi -- 2.47.1