]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Adding simple audit at drupal script
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Dec 2009 21:04:13 +0000 (19:04 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Dec 2009 21:04:13 +0000 (19:04 -0200)
templates/drupal.sh.erb

index 5536069b21bbfaf4f96587ed6f4b6c47e86506a0..e5956c8781b7d9f2c2f5cf735e53a1f2bf74e237 100644 (file)
@@ -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."
 }