]> gitweb.fluxo.info Git - puppet-drupal.git/commitdiff
Doing pm-refresh before pm-update
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Nov 2012 21:55:33 +0000 (19:55 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 14 Nov 2012 21:55:33 +0000 (19:55 -0200)
templates/drupal.sh.erb

index 2d4d59e3d3deed9900a4a0f6be59c52b46db0464..51a10d5b0b3f5eee14dceceb0b7ccd33e1430da5 100644 (file)
@@ -366,12 +366,14 @@ elif [ "$1" == "cron" ]; then
   drupal_iterate cron
 elif [ "$1" == "cron-update" ]; then
   SILENT="yes"
+  drupal_iterate pm-refresh $* &> /dev/null
   drupal_iterate -y -p pm-update | grep -v -E 'Unknown|Up-to-date|Atualizado|Desconhecido|^Array$|^\($|^\)$|OK'
 elif [ "$1" == "deploy" ]; then
   shift
   drupal_deploy $*
 elif [ "$1" == "update" ]; then
   shift
+  drupal_iterate pm-refresh $*
   drupal_iterate pm-update $*
 
   # Update alone might not trigger updatedb in a farm for all instances.