We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3205ec commit 1ab4008Copy full SHA for 1ab4008
server/conf/bash.bashrc.master
@@ -1,11 +1,13 @@
1
2
<tmpl_if name='jailkit_chroot'>
3
## Hack for Jailkit User to change back to the logged in user ##
4
-if [ "$LOGNAME" != $USER ]; then
5
- export HOME=<tmpl_var name='home_dir'>$LOGNAME
6
- export USER=$LOGNAME
7
- export USERNAME=$LOGNAME
8
- cd $HOME
+if [ -n "$LOGNAME" ]; then
+ if [ "$LOGNAME" != $USER ]; then
+ export HOME=<tmpl_var name='home_dir'>$LOGNAME
+ export USER=$LOGNAME
+ export USERNAME=$LOGNAME
9
+ cd $HOME
10
+ fi
11
fi
12
13
## Change machine hostname to site domain ##
0 commit comments