From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 30 May 2012 07:30:44 -0400
Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons).

---
 server/conf/bash.bashrc.master |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/server/conf/bash.bashrc.master b/server/conf/bash.bashrc.master
index 7347074..edcaf7d 100644
--- a/server/conf/bash.bashrc.master
+++ b/server/conf/bash.bashrc.master
@@ -1,11 +1,13 @@
 
 <tmpl_if name='jailkit_chroot'>
 ## Hack for Jailkit User to change back to the logged in user ##
-if [ "$LOGNAME" != $USER ]; then
- export HOME=<tmpl_var name='home_dir'>$LOGNAME
- export USER=$LOGNAME
- export USERNAME=$LOGNAME
- cd $HOME
+if [ -n "$LOGNAME" ]; then
+ if [ "$LOGNAME" != $USER ]; then
+  export HOME=<tmpl_var name='home_dir'>$LOGNAME
+  export USER=$LOGNAME
+  export USERNAME=$LOGNAME
+  cd $HOME
+ fi
 fi
 
 ## Change machine hostname to site domain ##
@@ -32,7 +34,7 @@
     PS1='\[\033[01;32m\]$USER@$HOSTNAME\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
     ;;
 *)
-    PS1='\$USER@$HOSTNAME:\w\$ '
+    PS1='$USER@$HOSTNAME:\w\$ '
     ;;
 esac
 

--
Gitblit v1.9.1