- new admin-cli command --add-user like --edit-user, but runs addaccount hook for existing accounts too

- using --add-user instead of --edit-user in setup_cmd_admin
This commit is contained in:
Ralf Becker
2010-08-20 20:28:59 +00:00
parent 9df4f2e93b
commit 442bdbe564
3 changed files with 15 additions and 11 deletions

View File

@ -103,9 +103,9 @@ class setup_cmd_admin extends setup_cmd
}
$this->restore_db();
// run admin/admin-cli.php --edit-user to store the new accounts once in EGroupware
// run admin/admin-cli.php --add-user to store the new accounts once in EGroupware
// to run all hooks (some of them can NOT run inside setup)
$cmd = EGW_SERVER_ROOT.'/admin/admin-cli.php --edit-user '.
$cmd = EGW_SERVER_ROOT.'/admin/admin-cli.php --add-user '.
escapeshellarg($this->admin_user.'@'.$this->domain.','.$this->admin_password.','.$this->admin_user);
exec($cmd,$output,$ret);
$output = implode("\n",$output);