From c5b0e339d9a3a0b6b55bd49fb8edd0556eab8d6e Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 7 Dec 2011 11:28:52 -0200 Subject: Iterate just over sites with settings --- templates/drupal.sh.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 87253c2..77bc472 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -64,12 +64,14 @@ function drupal_iterate { # Issue updates for drupal in $drupals; do - # Ignore symlinks so sites are updated just once - if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then - if [ "$1" != "cron" ]; then - echo "Processing $drupal..." + if [ -e "$drupal/settings.php" ]; then + # Ignore symlinks so sites are updated just once + if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then + if [ "$1" != "cron" ]; then + echo "Processing $drupal..." + fi + drush -l $drupal $* fi - drush -l $drupal $* fi done -- cgit v1.2.3