I'm not sure if there's something I'm messing up here or not, but I think it's not just me. :-)

Running Drush 5 RC 3, I have a multi-site with two installs: One in sites/default, one in sites/second.site.domain. They're both test instances. When I run:

drush si myprofile --uri=http://domain.of.first.site/

It reinstalls that site fine with that profile. If I do this, however:

drush si myprofile --uri=http://second.site.domain/

Then Drush dutifully reinstalls... the first site. It seems to always be reinstalling sites/default, not the site referenced by --uri. Oops.

Marking as critical since wiping out the wrong database is a data loss issue. :-)

Comments

moshe weitzman’s picture

Status: Active » Postponed (maintainer needs more info)

What version of Drupal? Please post a log with --debug on.

For now, you can specify --sites-subdir instead of --uri. Still looking into this.

Crell’s picture

Core is 7.10. I'll see about getting a debug log later. Stand by.

moshe weitzman’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed in 87603fd but I sent a mail to Greg Anderson since this reverts a change he made at http://drupalcode.org/project/drush.git/commitdiff/e0204091b930be40fbcb4...

greg.1.anderson’s picture

Yes, I reviewed your change and the one I made before, and your commit is correct. The 'default' that you removed was clearly in error; it should not have been in my previous commit, as it makes the 'if' statement always true, to notably bad effect.

Status: Fixed » Closed (fixed)

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