From 3684010c3b57ee91dab1fdfc2dc0986062dd986e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 14 Oct 2008 16:08:32 +0000 Subject: [PATCH] create home dir for admin created in setup --- setup/inc/class.setup.inc.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/setup/inc/class.setup.inc.php b/setup/inc/class.setup.inc.php index 7ee135b9d7..d466f07c62 100644 --- a/setup/inc/class.setup.inc.php +++ b/setup/inc/class.setup.inc.php @@ -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 {