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 }' };
  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


RSS Icon Subscribe to comments

You need to login to post a comment.