aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-30 14:42:41 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-30 14:42:41 -0200
commit70d738783e00ed1f3338fa33b99b1bfde2b3c949 (patch)
tree813fe450b5b0bf70f4e12587b97318bb3cf2bfbb
parent69dd03f5b9b8dbcc9fa707ee06634f79a919b59c (diff)
downloadpuppet-drupal-70d738783e00ed1f3338fa33b99b1bfde2b3c949.tar.gz
puppet-drupal-70d738783e00ed1f3338fa33b99b1bfde2b3c949.tar.bz2
Ignore symlinks so sites are updated just once, enhanced version
-rw-r--r--templates/drupal.sh.erb2
1 files changed, 1 insertions, 1 deletions
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