Return to Snippet

Revision: 9015
at October 17, 2008 07:24 by berkes


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

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

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

Initial Title
Return list of modules for each Drupal multisite

Initial Tags
Bash, drupal

Initial Language
Bash