]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install-Base-Stuff.sh
#3405 creaToolsTools Feature New Normal - vtk8itk5wx3-macos
[creaToolsTools.git] / Linux / scripts / ThirdParty-install-Base-Stuff.sh
index 5086380eb026005bb34877bef9944b9d95925e9d..7caf9ca714ec77f2d6b156441a88fd214833637d 100644 (file)
@@ -34,6 +34,12 @@ 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
+        elif [ "MacOS" == $OperatingSystem ] ; then
+           sudo bash ThirdParty-install-Base-rpm.sh $OperatingSystem
+               else
+           su -c "bash ThirdParty-install-Base-rpm.sh $OperatingSystem"   
+        fi 
     fi