Commit f94f455f authored by tbrehm's avatar tbrehm
Browse files

No commit message

No commit message
parent 6acf424c
......@@ -163,7 +163,7 @@ class installer_base {
."IDENTIFIED BY '".$cf['ispconfig_password']."';";
if(!$this->db->query($query)) {
$tmp = $this->db->queryOneRecord("SELECT * from mysql.user WHERE User = '".$cf['ispconfig_user']."' AND Host = '$from_host'");
if($tmp["User"] == $cf['ispconfig_user'])) {
if($tmp["User"] == $cf['ispconfig_user']) {
$this->db->query("UPDATE mysql.user SET `password` = PASSWORD('".$cf['ispconfig_password']."') WHERE User = '".$cf['ispconfig_user']."' AND Host = '$from_host'");
} else {
$this->error('Unable to create database user: '.$cf['ispconfig_user']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment