Skip to content
Snippets Groups Projects
Commit 1ab4008b authored by tbrehm's avatar tbrehm
Browse files

Fix: FS#866 - bad handling of environment variables with jailkit ssh users in...

Fix: FS#866 - bad handling of environment variables with jailkit ssh users in server/conf/bash.bashrc.master
parent a3205eca
No related branches found
No related tags found
No related merge requests found
<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 ##
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment