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?

CommentFileSizeAuthor
#2 output2.txt17.37 KBwiifm
output.txt16.74 KBwiifm

Comments

cbalan’s picture

Hey 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

wiifm’s picture

StatusFileSize
new17.37 KB

If 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:

/opt/drupalfiles/scripts/drush/drush --root=/opt/drupalfiles/vhosts/intranet --sites-subdir=intrastg01.ird.govt.nz.random-test --uri=intrastg01.ird.govt.nz.random-test site-install6 --debug --locale=en --site-name=site --site-mail=sean.hamlin@ird.govt.nz

Still am receiving the

 <h2>Drupal already installed</h2>

error though

cbalan’s picture

What 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

cbalan’s picture

Hey wiifm69,

Any updates on this ?

Thank you,
Catalin Balan

wiifm’s picture

Status: Active » Closed (cannot reproduce)

Hi 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