]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Fixing hash on drupal update
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 23 May 2012 13:44:25 +0000 (10:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 23 May 2012 13:44:25 +0000 (10:44 -0300)
templates/drupal.sh.erb

index c6b9ca9547b7ee91a4afd47d0432bec2763191e2..f98528926ad85fb9455785294e30f4af00ea0436 100644 (file)
@@ -65,7 +65,7 @@ function drupal_iterate {
     # Issue updates
     for drupal in $drupals; do
       if [ -e "$drupal/settings.php" ]; then
-        hash="sha1sum $drupal/settings.php"
+        hash="`sha1sum $drupal/settings.php | cut -d ' ' -f 1`"
         # Process sites just once, avoiding symlinks
         if echo $settings_hash | grep -q -v $hash; then
           settings_hash="$settings_hash-$hash"