]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Iterate just over sites with settings
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 7 Dec 2011 13:28:52 +0000 (11:28 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 7 Dec 2011 13:28:52 +0000 (11:28 -0200)
templates/drupal.sh.erb

index 87253c2e1e2dcc2f35cace1d666683a8f3314925..77bc472767da10da20416b70c91af34a1b347c65 100644 (file)
@@ -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