aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-05-23 10:44:25 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-05-23 10:44:25 -0300
commit1a234ed0650de80e8f3eaa962896186829cb8aa6 (patch)
treefbd5ef8eb9ff4404c003e1d57449701e21387e00
parent1391405c99c9e85f54dd171783722340d365e975 (diff)
downloadpuppet-drupal-1a234ed0650de80e8f3eaa962896186829cb8aa6.tar.gz
puppet-drupal-1a234ed0650de80e8f3eaa962896186829cb8aa6.tar.bz2
Fixing hash on drupal update
-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 c6b9ca9..f985289 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -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"