diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-12-07 11:28:52 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-12-07 11:28:52 -0200 |
commit | c5b0e339d9a3a0b6b55bd49fb8edd0556eab8d6e (patch) | |
tree | 8219670dc8b90579b6ebdada4091d30797165061 | |
parent | a8384877bf0547e7c2d959a5b09a0fda6d8d92ab (diff) | |
download | puppet-drupal-c5b0e339d9a3a0b6b55bd49fb8edd0556eab8d6e.tar.gz puppet-drupal-c5b0e339d9a3a0b6b55bd49fb8edd0556eab8d6e.tar.bz2 |
Iterate just over sites with settings
-rw-r--r-- | templates/drupal.sh.erb | 12 |
1 files 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 |