Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
checks for drupal updates
#!/bin/bash
DRUPALSITES=`find /var/www -name default.settings.php | grep -i '/htdocs/' 2> "/dev/null"`
for site in $DRUPALSITES; do
value=`echo $site | sed -e "s/\/sites\/default\/default.settings.php//"`
echo $value
echo
DRUSHOUTPUT=`/usr/bin/php /opt/scripts/drush/drush.php --root=$value up -n 2>&1 | grep -E '(SECURITY|not supported)'`
echo $DRUSHOUTPUT
echo
echo "================================"
echo
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment