mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 18:08:02 +02:00
fix typo giving fatal error on Univention Installation
This commit is contained in:
parent
033ab7f65d
commit
62c57946f6
@ -67,7 +67,7 @@ class accounts_univention extends accounts_ldap
|
|||||||
// get_default() does not work for Adminstrator, try acc_id=1 instead
|
// get_default() does not work for Adminstrator, try acc_id=1 instead
|
||||||
// if everything fails try hostname ...
|
// if everything fails try hostname ...
|
||||||
try {
|
try {
|
||||||
if (!($account = emailadmin_account::get_default()))
|
if (!($account = emailadmin_account::get_default(false, false, false)))
|
||||||
{
|
{
|
||||||
$account = emailadmin_account::read(1);
|
$account = emailadmin_account::read(1);
|
||||||
}
|
}
|
||||||
@ -76,7 +76,7 @@ class accounts_univention extends accounts_ldap
|
|||||||
catch(Exception $e) {
|
catch(Exception $e) {
|
||||||
unset($e);
|
unset($e);
|
||||||
}
|
}
|
||||||
if (empty($hostname)) $hostname = trunc(system('hostname -f'));
|
if (empty($hostname)) $hostname = trim(system('hostname -f'));
|
||||||
$params[] = '--set'; $params[] = 'mailHomeServer='.$hostname;
|
$params[] = '--set'; $params[] = 'mailHomeServer='.$hostname;
|
||||||
}
|
}
|
||||||
$cmd = self::DIRECTORY_MANAGER_BIN.' '.implode(' ', array_map('escapeshellarg', $params));
|
$cmd = self::DIRECTORY_MANAGER_BIN.' '.implode(' ', array_map('escapeshellarg', $params));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user