Commit ecec86bf authored by Jon Pugh's avatar Jon Pugh

Issue #2704291 by Jon Pugh: When checking if the site being verified is...

Issue #2704291 by Jon Pugh: When checking if the site being verified is hostmaster, compare root and uri to the @hostmaster alias instead of just checking if a function exists.
parent ccd970e5
......@@ -102,9 +102,8 @@ function drush_provision_drupal_pre_provision_verify() {
_provision_drupal_create_settings_file();
if (function_exists('hosting_get_features')) {
// We're verifying the hostmaster site, so record a list of enabled
// Hosting Features.
// If this is the hostmaster site, save the ~/.drush/drushrc.php file.
if (d()->root == d('@hostmaster')->root && d()->uri == d('@hostmaster')->uri) {
$aegir_drushrc = new Provision_Config_Drushrc_Aegir();
$aegir_drushrc->write();
}
......
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