Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is the bash script for drush I used to push advagg out to a bunch of sites.
#!/bin/bash
pushd /var/www/html/sites
for d in `ls -Fd * | grep '/$' | grep -v '^all'`
do
echo $d
#Enable AdvAgg
~/drush/drush -y -l http://$d vset advagg_checksum_mode md5
~/drush/drush -y -l http://$d vset advagg_dir_htaccess 0
~/drush/drush -y -l http://$d vset advagg_js_compress_inline 0
~/drush/drush -y -l http://$d en advagg advagg_js_compress advagg_js_cdn advagg_bundler css_emimage
chown -R apache:apache $d/files/advagg_css
chown -R apache:apache $d/files/advagg_js
~/drush/drush -y -l http://$d dis unlimited_css
~/drush/drush -y -l http://$d vset preprocess_css 0
~/drush/drush -y -l http://$d vset preprocess_js 0
chown -R apache:apache $d/files/advagg_css
chown -R apache:apache $d/files/advagg_js
~/drush/drush -y -l http://$d cc all
done
popd