One step closer to world domination
Use Drush to update a module in a Drupal multisite environment
I love Drush. It makes managing my Drupal multisite installs much less complicated. I used to write custom scripts to loop through all the sites an perform actions but this little bit of code has made my maintenance tasks so much simpler.
for SITE in `ls /path/to/drupal/sites | grep "\."`; do /path/to/drush --uri=$SITE --root=/path/to/drupal --yes updatedb done
| Print article | This entry was posted by Matt Danger on January 10, 2011 at 10:34 pm, and is filed under Drupal, PHP. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Comments are closed.










