Cronjob on Jailkit Environment is not executed

short description

Cronjob is not executed on a jailed environment because the home directory is missing or not created
this happen if the website didn't have Shell-user but have a Cronjob ( not URL cronjob )

correct behaviour

The cronjob should be executed, and it's log is created on the /private directory of jailed environment.

environment

Server OS: Ubuntu
Server OS version: 18.04 Bionic Beaver
ISPConfig version: 3.1.13 .

proposed fix

create the home directory manually seems fix the problem.

but i modify scripts on /usr/local/ispconfig/server/scripts/create_jailkit_user.sh to check home directory, after that i re-add the cronjob from webpanel

### Check if USERHOMEDIR already exists ###
if [ ! -d $CHROOT_HOMEDIR/.$CHROOT_USERHOMEDIR ]; then
 mkdir -p $CHROOT_HOMEDIR/.$CHROOT_USERHOMEDIR
 chown -R $CHROOT_USERNAME $CHROOT_HOMEDIR/.$CHROOT_USERHOMEDIR
fi

create_jailkit_user.sh

screenshots

Error on auth.log Screen_Shot_2018-08-27_at_15.27.49

Thank You...