-# - remove line 'sh $installPrefix/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
-sed -i -e '/.*creatools_third_party_library_config.*/ d' /etc/bashrc
+# - remove line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' if any (with accurate value for ???)
+
+# 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
+
+
+# - add line 'bash $installPrefixThird/share/creatools_third_party_library_config.sh' (with accurate value for ???)
+echo installPrefixThird=$installPrefixThird >> $ETC_BASHRC
+echo '[ -f "$installPrefixThird/share/creatools_third_party_library_config.sh" ] && source $installPrefixThird/share/creatools_third_party_library_config.sh' >> $ETC_BASHRC
+
+
+
+ chown -R $loginUserName:$loginGroupName $generationdir