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
Comment #1
moshe weitzman CreditAttribution: moshe weitzman commentedWhat version of Drupal? Please post a log with --debug on.
For now, you can specify --sites-subdir instead of --uri. Still looking into this.
Comment #2
Crell CreditAttribution: Crell commentedCore is 7.10. I'll see about getting a debug log later. Stand by.
Comment #3
moshe weitzman CreditAttribution: moshe weitzman commentedFixed 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...
Comment #4
greg.1.anderson CreditAttribution: greg.1.anderson commentedYes, 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.