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

CommentFileSizeAuthor
#1 553202.patch1.58 KBmig5

Comments

Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new1.58 KB

cheers

anarcat’s picture

Priority: Normal » Critical

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

jonhattan’s picture

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]
anarcat’s picture

Status: Needs review » Reviewed & tested by the community
anarcat’s picture

Status: Reviewed & tested by the community » Fixed

Committed, thanks!

Status: Fixed » Closed (fixed)

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

sindhujavn’s picture

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