]> Creatis software - creaToolsTools.git/commitdiff
Don't check if root when CreaTools-install
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 2 Mar 2011 14:14:50 +0000 (14:14 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Wed, 2 Mar 2011 14:14:50 +0000 (14:14 +0000)
Linux/menu.sh
Linux/scripts/CreaTools-install.sh

index 4c5162d7bef8c6b355e449981222f0e90ba9e712..de397d657e0ca775644ed336ede9b1c5905a1aba 100644 (file)
@@ -365,28 +365,34 @@ do
     fi    
   ;;
   
-  4) 
-      if [ $UID != 0 ]
-      then
-         echo
-         echo "..ERROR.."
-         echo "==================================================="
-         echo "REMEMBER !"
-         echo ""
-         echo "YOU NEED TO RUN THIS ONE AS root"
-         echo "==================================================="
-         echo
-         echo
-         exit 0
-      fi
+  4)
+
+#      if [ $UID != 0 ]
+#      then
+#         echo
+#         echo "..ERROR.."
+#         echo "==================================================="
+#         echo "REMEMBER !"
+#         echo ""
+#         echo "YOU NEED TO RUN THIS ONE AS root"
+#         echo "==================================================="
+#         echo
+#         echo
+#         exit 0
+#      fi
+
       echo "========================= 4"
-      bash scripts/CreaTools-install.sh 
-      if [ $UID != 0 ]
-      then
-        echo "You HAVE to leave current window to continue!"
-      else
-        echo "==> Hit any key to close current window"
-      fi
+      bash scripts/CreaTools-install.sh
+      
+   
+#      if [ $UID != 0 ]
+#      then
+#        echo "You HAVE to leave current window to continue!"
+#      else
+#        echo "==> Hit any key to close current window"
+#      fi
+
+
       echo "You HAVE to leave current window to continue!"
       read a
       kill $PPID     
index ffb7b820a31c29e0a264cb9ef2ab3b83c487774c..d15817275e43240c77ee5a977d4097b88cf9dfaa 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
-if [ $UID = 0 ] 
-then
+#if [ $UID = 0 ] 
+#then
   # Set all local variables
   source $PWD/scripts/CreaTools-configure.sh
   source $PWD/scripts/CreaTools-names.sh
@@ -46,15 +46,15 @@ echo installPrefixtmp=$installPrefix >> $ETC_BASHRC
 echo '[ -f "$installPrefixtmp/share/creatools_base_library_config.sh" ] &&  source $installPrefixtmp/share/creatools_base_library_config.sh' >> $ETC_BASHRC 
 
 
-else
-  echo
-  echo "..ERROR.."
-  echo "==================================================="
-  echo "REMEMBER !"
-  echo ""
-  echo "YOU NEED TO RUN THIS ONE AS root"
-  echo "==================================================="
-  echo
-  echo
-fi 
+#else
+#  echo
+#  echo "..ERROR.."
+#  echo "==================================================="
+#  echo "REMEMBER !"
+#  echo ""
+#  echo "YOU NEED TO RUN THIS ONE AS root"
+#  echo "==================================================="
+#  echo
+#  echo
+#fi