From: Silvio Rhatto Date: Wed, 30 Dec 2009 16:42:41 +0000 (-0200) Subject: Ignore symlinks so sites are updated just once, enhanced version X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=70d738783e00ed1f3338fa33b99b1bfde2b3c949;p=puppet-drupal.git Ignore symlinks so sites are updated just once, enhanced version --- diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 74a670a..b966f93 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -55,7 +55,7 @@ function drupal_update { # Issue updates for drupal in $drupals; do # Ignore symlinks so sites are updated just once - if [ ! -h "$drupal" ]; then + if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then echo "Processing $drupal..." drush -l $drupal update fi