mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Possiable fix for databases not being created when the user doesn't specify a host
This commit is contained in:
parent
96293091d6
commit
ebc976dbdb
@ -333,7 +333,15 @@ class db {
|
||||
$this->Password = $adminpasswd;
|
||||
}
|
||||
|
||||
system("createdb -h ".$this->Host." ". $currentDatabase, $outval);
|
||||
if (! $this->Host)
|
||||
{
|
||||
system('createdb ' . $currentDatabase, $outval);
|
||||
}
|
||||
else
|
||||
{
|
||||
system('createdb -h ' . $this->Host . ' ' . $currentDatabase, $outval);
|
||||
}
|
||||
|
||||
if($outval != 0)
|
||||
{
|
||||
/* either the rights r not available or the postmaster is not running .... */
|
||||
|
Loading…
Reference in New Issue
Block a user