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 setupIf 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 setupso 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
cheers
#2
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 setupphp '/var/aegir/drush/drush.php' hosting dispatch --root='/var/aegir/drupal-6.13' --uri=http://aegir.example.comDispatch command was run successfully [success]
#4
#5
Committed, thanks!
#6
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 ???