X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Linux%2Fscripts%2FThirdParty-install-Base-Stuff.sh;h=43401dc56dda951ac89a210662bc47d9b6d8fbe2;hb=76af7cfcfd5295c4b23954d3c0cfb0d1c1210bcc;hp=5086380eb026005bb34877bef9944b9d95925e9d;hpb=4e5e6d52e9be90b36ef08b90138669c51f5b4b49;p=creaToolsTools.git 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