Download & Extend

Hosting 'Initial Setup' drush command requires --uri parameter or else looks up sites/default/settings.php

Project:Hosting
Version:6.x-0.3-rc3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

In the documentation it is advised to create the aegir site as a 'normal' aegir site inside the /sites/ dir

During the Hostmaster installation wizard, one is required to run the Hosting Setup command for initial setup.

cd /var/aegir/drupal-6.13
/var/aegir/drush/drush.php hosting setup

If one has set up the aegir site to not be in sites/default/ but sites/aegir.example.com/, the current 'hosting setup' drush command fails with

Could not find a Drupal settings.php file at                         [error]
./sites/default/settings.php.

The command should be:

/var/aegir/drush/drush.php --uri=http://aegir.example.com hosting setup

so that it reads the correct settings.php

Patch attached fixes the instructions to include the --uri.

There was already this:

$uri =  HOSTING_DEFAULT_BASE_URL;

but this wasn't called anywhere and also wasn't defined, I define it using the global base_url parameter from bootstrap.inc

Comments

#1

Status:active» needs review

cheers

AttachmentSize
553202.patch 1.58 KB

#2

Priority:normal» critical

Patch looks fine here, although I couldn't test it right now... Seems RC, but would appreciate third party testing.

#3

Patch applyed and tested here with success.

aegir@jengibre:~/drupal-6.13$ /var/aegir/drush/drush.php --uri=http://aegir.example.com hosting setup
php '/var/aegir/drush/drush.php' hosting dispatch --root='/var/aegir/drupal-6.13' --uri=http://aegir.example.comDispatch command was run successfully                                [success]

#4

Status:needs review» reviewed & tested by the community

#5

Status:reviewed & tested by the community» fixed

Committed, thanks!

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

#7

wen i type this(/var/aegir/drush/drush.php hosting setup) in my terminal i dint receive any msges or errors.... it simply takes me to next line... whether i miss anything ???