Commit e2c75825 authored by tbrehm's avatar tbrehm
Browse files

No commit message

No commit message
parent 748bd4ef
......@@ -162,7 +162,12 @@ class installer_base {
."TO '".$cf['ispconfig_user']."'@'".$from_host."' "
."IDENTIFIED BY '".$cf['ispconfig_password']."';";
if(!$this->db->query($query)) {
$this->error('Unable to create database user: '.$cf['ispconfig_user']);
$tmp = $this->db->queryOneRecord("SELECT * from mysql.user WHERE User = '".$cf['ispconfig_user']."' AND Host = '$from_host'")
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']);
}
}
//* Reload database privelages
......
Supports Markdown
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