Commit 336bfcaa authored by Adrian Rossouw's avatar Adrian Rossouw

If the master server -> aegir_root db connection is happening on the local...

If the master server -> aegir_root db connection is happening on the local server, use 'localhost' as the host name.
all the grants will still happen using the remote_host of the server.
parent 7a8b7e83
......@@ -276,7 +276,7 @@ class provisionService_db_pdo extends provisionService_db {
function init() {
parent::init();
$this->dsn = sprintf("%s:host=%s", $this->PDO_type, $this->creds['host']);
$this->dsn = sprintf("%s:host=%s", $this->PDO_type, drush_is_local_host($this->creds['host']) ? 'localhost' : $this->creds['host']);
}
function connect() {
......
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