Posted By

berkes on 10/17/08


Tagged

Bash administration drupal maintainance Drush


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
shrop


Return list of modules for each Drupal multisite


 / Published in: Bash
 

URL: http://drupal.org/project/drush

A bash script that calls Drush for all your multisite sites and returns a list of available and installed modules for each site.

  1. for site in $(ls ./sites/*/settings.php); do
  2. uri= ${ echo $site | awk -F '/' '{ print $1 }' };
  3.  
  4. ./sites/all/modules/drush/drush.php -l $uri -sql sql query 'SELECT name, status, filename from system ORDER BY status DESC, weight ASC";
  5. done

Report this snippet  

You need to login to post a comment.