Skip to content

Commit 711247a

Browse files
committed
Wrap term env var export in a separate jailkit only block
1 parent 2636c73 commit 711247a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/conf/bashrc_user_redhat.master

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# .bashrc
22

3-
3+
<tmpl_if name='jailkit_chroot' op='==' value='y'>
4+
export TERM=xterm
5+
</tmpl_if>
46

57
# Source global definitions
68
if [ -f /etc/bashrc ]; then
79
. /etc/bashrc
810
fi
911

1012
<tmpl_if name='jailkit_chroot' op='==' value='y'>
11-
export TERM=xterm
1213
## Hack for Jailkit User to change back to the logged in user ##
1314
if [ -n "$LOGNAME" ]; then
1415
if [ "$LOGNAME" != $USER ]; then

0 commit comments

Comments
 (0)