]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Ignore symlinks so sites are updated just once, enhanced version
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Dec 2009 16:42:41 +0000 (14:42 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 30 Dec 2009 16:42:41 +0000 (14:42 -0200)
templates/drupal.sh.erb

index 74a670a3622a58b93ddfbb0557a8a24e13b3ce40..b966f93733d8f0a00def79a5669d198997471b18 100644 (file)
@@ -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