fix setting of passwords in case mysql-access-hosts list gets changed, fixes #1407

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-04-14 14:35:12 +02:00
parent d73e5f8dc7
commit 69ec85ef19
2 changed files with 8 additions and 3 deletions

View File

@@ -67,7 +67,7 @@ function correctMysqlUsers($mysql_access_host_array) {
$mysql_access_host = trim($mysql_access_host);
if (!in_array($mysql_access_host, $users[$username]['hosts'])) {
$dbm->getManager()->grantPrivilegesTo($username, $password, $mysql_access_host);
$dbm->getManager()->grantPrivilegesTo($username, $password, $mysql_access_host, true);
}
}