Created
May 15, 2018 01:26
-
-
Save w3llr00t3d/02cc70b94aa1f6ac784e1edaa76d9649 to your computer and use it in GitHub Desktop.
checks for drupal updates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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