create home dir for admin created in setup

This commit is contained in:
Ralf Becker 2008-10-14 16:08:32 +00:00
parent 2e66d3b093
commit 3684010c3b

View File

@ -28,6 +28,13 @@ class setup
var $oProc;
var $cookie_domain;
/**
* Instance of the hooks class
*
* @var hooks
*/
var $hooks;
/**
* @var setup_detection
*/
@ -961,6 +968,15 @@ class setup
error_log("setup::add_account('$username','$first','$last',\$passwd,'$primary_group',$changepw,'$email') failed! accountid=$accountid");
return false;
}
// call add{account|group} hook to create the vfs-home-dirs
if ($primary_group)
{
vfs_home_hooks::addAccount($account);
}
else
{
vfs_home_hooks::addGroup($account);
}
}
if ($primary_group) // only for users, NOT groups
{