]> Creatis software - creaToolsTools.git/blobdiff - Linux/scripts/ThirdParty-install.sh
Don't install creaTools as root!
[creaToolsTools.git] / Linux / scripts / ThirdParty-install.sh
index 1a06a943547396dbef3cea1d7ed195cd2f62fa78..1b893870c7f5302b7971125a0f6df7b5964957a6 100644 (file)
@@ -249,12 +249,16 @@ echo export LD_LIBRARY_PATH='$'LD_LIBRARY_PATH:$VTK_DIR    >> $installPrefixThir
 #  modify .bashrc
 # - remove line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
 
-if [ ! -f /etc/bashrc ]
-then
-    export ETC_BASHRC="/etc/bash.bashrc"
-else
-    export ETC_BASHRC="/etc/bashrc"
-fi
+# Install creatools as user (no longer as root) // JPR 2/5/2011
+#if [ ! -f /etc/bashrc ]
+#then
+#    export ETC_BASHRC="/etc/bash.bashrc"
+#else
+#    export ETC_BASHRC="/etc/bashrc"
+#fi
+
+export ETC_BASHRC=$HOME/.bashrc
+
    sed -i -e '/.*installPrefixThird*/ d' $ETC_BASHRC
    sed -i -e '/.*creatools_third_party_library_config.*/ d' $ETC_BASHRC