- correcting c'n'p error (default index.html not being placed correclty on user creation)
This commit is contained in:
@@ -144,7 +144,7 @@ while($row = $db->fetch_array($result_tasks))
|
|||||||
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
safe_exec('mkdir -p ' . escapeshellarg($settings['system']['vmail_homedir'] . $row['data']['loginname']));
|
||||||
|
|
||||||
//check if admin of customer has added template for new customer directories
|
//check if admin of customer has added template for new customer directories
|
||||||
$destdir = makeCorrectDir($settings['system']['documentroot_prefix'] . $loginname);
|
$destdir = makeCorrectDir($settings['system']['documentroot_prefix'] . '/' . $row['data']['loginname']);
|
||||||
storeDefaultIndex($row['data']['loginname'], $destdir, $cronlog, true);
|
storeDefaultIndex($row['data']['loginname'], $destdir, $cronlog, true);
|
||||||
|
|
||||||
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
$cronlog->logAction(CRON_ACTION, LOG_NOTICE, 'Running: chown -R ' . (int)$row['data']['uid'] . ':' . (int)$row['data']['gid'] . ' ' . escapeshellarg($settings['system']['documentroot_prefix'] . $row['data']['loginname']));
|
||||||
|
|||||||
Reference in New Issue
Block a user