Return list of modules for each Drupal multisite


/ Published in: Bash
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.