Hi there,
I have been looking for a solution like this for quite some time, have found quite a few solutions that seem to do similiar tasks (http://superuser.com/questions/52414/how-do-you-install-drupal-with-comm...). I found this module from a link on that page.
I am looking to automate the creation of multisite site install for an intranet I am creating. The problem seems to be that this drush command expects that you are installing the 'default' site (not a sub site).
Attached is the output of running the command:
/opt/drupalfiles/scripts/drush/drush --root=/opt/drupalfiles/vhosts/intranet --uri=intrastg01.ird.govt.nz.testdb site-install6 --debug --locale=en --site-name=site --site-mail=sean.hamlin@ird.govt.nz
I have already installed the 'default' site, and have created a new folder
sites/intrastg01.ird.govt.nz.testdb
together with a settings.php file hooked up to a fresh db
The main error seems to be:
<h2>Drupal already installed</h2>
Which to me indicates that this module is trying to override the existing 'default' site, and ignoring the --uri drush command
Thoughts?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | output2.txt | 17.37 KB | wiifm |
| output.txt | 16.74 KB | wiifm |
Comments
Comment #1
cbalan commentedHey wiifm69,
Please use --sites-subdir=site-folder instead of --uri.
That property is used by core drush pre site install command to load site settings.php.
Please let me know if this works for you.
Thank you,
Catalin Balan
Comment #2
wiifmIf the --uri command is missed then drush tries to overwrite the 'default' database (bad)
The inclusion of the --sites-subdir option does not seem to have changed much, full command used:
Still am receiving the
error though
Comment #3
cbalan commentedWhat drush version are you running ?
Because, for me, works fine with drush-3.3
Just to make sure, is intrastg01.ird.govt.nz.random-test/settings.php pointing to a clean db/different table prefix? (different from default)
Thank you,
Catalin Balan
Comment #4
cbalan commentedHey wiifm69,
Any updates on this ?
Thank you,
Catalin Balan
Comment #5
wiifmHi Catalin Balan,
I have abandoned the site-install drush command in favour of heavily customised install profiles. Sorry I was not able to assist you further. To answer your previous questions, I was running drush 4.0 (DEV) and definitely using a clean DB in the settings.php file (doing a manual install with installation profiles works fine for me)
If I get some time I may look into this in the future, I appreciate all your work on this module.
Cheers
Sean