do not run admin-cli.php --add-user for Stylite package install

This commit is contained in:
Ralf Becker 2014-09-09 18:07:39 +00:00
parent c33a71c5f7
commit a5f7195462

View File

@ -107,7 +107,10 @@ class setup_cmd_admin extends setup_cmd
// to run all hooks (some of them can NOT run inside setup)
$cmd = EGW_SERVER_ROOT.'/admin/admin-cli.php --add-user '.
escapeshellarg($this->admin_user.'@'.$this->domain.','.$this->admin_password.','.$this->admin_user);
if (php_sapi_name() !== 'cli' || !file_exists(EGW_SERVER_ROOT.'/stylite') || file_exists(EGW_SERVER_ROOT.'/managementserver'))
{
exec($cmd,$output,$ret);
}
$output = implode("\n",$output);
//echo "ret=$ret\n".$output;
if ($ret)