From: Silvio Rhatto Date: Tue, 29 Dec 2009 21:04:13 +0000 (-0200) Subject: Adding simple audit at drupal script X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c5fe52309bcb484a2e8b89186d8cb18b25517d2b;p=puppet-drupal.git Adding simple audit at drupal script --- 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." }