Skip to content

Instantly share code, notes, and snippets.

@w3llr00t3d
Created May 15, 2018 01:26
Show Gist options
  • Save w3llr00t3d/02cc70b94aa1f6ac784e1edaa76d9649 to your computer and use it in GitHub Desktop.
Save w3llr00t3d/02cc70b94aa1f6ac784e1edaa76d9649 to your computer and use it in GitHub Desktop.
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