Some modifications in /root/ispconfig/scripts/shell/create_chroot_env.sh for my WinSCP compatibility.

"scp" (also "screen" and "nano") added to "APPS=..." declaration,

Possible bug in "HOMEDIR" discovering.

HOMEDIR=`grep /etc/passwd -e "^$CHROOT_USERNAME" | cut -d':' -f 6`

Click to expand...

Assume, I got in my "/etc/passwd" something like this:
web4_adam:...,
web4_ada:...,
web4_adamek:...
The grep command returns three lines when looking for web4_ada and two lines when looking for web4_adam!
Adding ":" after "$CHROOT_USERNAME" prevents username mistakes.