aboutsummaryrefslogtreecommitdiff
path: root/templates/drupal.sh.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-29 19:04:13 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-29 19:04:13 -0200
commitc5fe52309bcb484a2e8b89186d8cb18b25517d2b (patch)
tree96548172b96be4b0d73fd4dbbc37343d5d0b4258 /templates/drupal.sh.erb
parentf1d293755a584c919a1b0d3fee206ebcd4ca4cf9 (diff)
downloadpuppet-drupal-c5fe52309bcb484a2e8b89186d8cb18b25517d2b.tar.gz
puppet-drupal-c5fe52309bcb484a2e8b89186d8cb18b25517d2b.tar.bz2
Adding simple audit at drupal script
Diffstat (limited to 'templates/drupal.sh.erb')
-rw-r--r--templates/drupal.sh.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index 5536069..e5956c8 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -115,9 +115,11 @@ function drupal_upgrade {
fi
# Change symlink to point to the new location
- cd $BASE ; rm drupal-$drupal_series && ln -s drupal-$new drupal-$drupal_series
-
+ cd $BASE ; rm -rf drupal-$drupal_series && ln -s drupal-$new drupal-$drupal_series
+
# Done
+ echo "Audit: `du -hs drupal-$old`"
+ echo "Audit: `du -hs drupal-$new`"
echo "Check procedure and remove drupal-$old once you make sure that everything is fine."
}