Fix for Fix install.hostmaster.inc on ubuntu (where uname -n == 127.0.1.1)

  1. diff --git a/install.hostmaster.inc b/install.hostmaster.inc
  2. index 0280703..2826793 100644
  3. --- a/install.hostmaster.inc
  4. +++ b/install.hostmaster.inc
  5. @@ -35,12 +35,14 @@ function drush_provision_hostmaster_install($site = NULL) {
  6.      $data['master_db'] = "$scheme://$user:$pass@$host";
  7.    }
  8.  
  9. +  $db_host = parse_url($data['master_db'], PHP_URL_HOST);
  10. +
  11.    // TODO: support creation of an external db server
  12.    $server = '@server_master';
  13.    drush_backend_invoke_args("provision-save", array($server), array(
  14.      'context_type' => 'server',
  15.      // files
  16. -    'remote_host' => php_uname('n'),
  17. +    'remote_host' => $db_host,
  18.      'aegir_root' => $aegir_root,
  19.      'script_user' => drush_get_option('script_user', get_current_user()),
  20.     // apache

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.