chroot cronjob for websites with no shell-user fails to create the right environment

short description

Take a website that has no shell-user created. Create first cron job, chrooted cron. Process goes well, without errors or warning. But the cron is never run. If you check the environment there is a problem:

  • subfolder home/webY is not created;
  • webY user details shows wrong home path - it should be /var/www/clients/clientX/webY/./home/webY

correct behaviour

  • create /var/www/clients/clientX/webY/./home/webY path
  • set corect home folder for user webY

environment

Server OS: Ubuntu
Server OS version: 16.04 - Xenial Xerus ISPConfig version: 3.1.7p1