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

mig5 - August 19, 2009 - 05:45
Project:Hosting
Version:6.x-0.3-rc3
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

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

#1

mig5 - August 19, 2009 - 05:46
Status:active» needs review

cheers

AttachmentSize
553202.patch 1.58 KB

#2

anarcat - August 19, 2009 - 14:02
Priority:normal» critical

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

#3

jonhattan - August 20, 2009 - 10:48

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

anarcat - August 20, 2009 - 13:13
Status:needs review» reviewed & tested by the community

#5

anarcat - August 20, 2009 - 14:03
Status:reviewed & tested by the community» fixed

Committed, thanks!

#6

System Message - September 3, 2009 - 14:10
Status:fixed» closed

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

#7

sindhujavn - September 18, 2009 - 09:19

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 ???

 
 

Drupal is a registered trademark of Dries Buytaert.