mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
create home dir for admin created in setup
This commit is contained in:
parent
2e66d3b093
commit
3684010c3b
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user