summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Pugh2016-04-11 18:15:07 -0400
committerJon Pugh2016-04-11 18:15:07 -0400
commitecec86bf26a63aa09e71d6cf27f1cf87f5e1a17a (patch)
tree7a226e9d9bf40169d8b5f0eef82dd532edc704ee
parentccd970e5067e96488b3fd6d88ad82bc4dcbb8e35 (diff)
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.2704291-check-hostmaster
-rw-r--r--platform/verify.provision.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/verify.provision.inc b/platform/verify.provision.inc
index a62b128..3587a17 100644
--- a/platform/verify.provision.inc
+++ b/platform/verify.provision.inc
@@ -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();
}