From 724a71ee1ccee4b48e9b936c1a0ba5dfdae69bcd Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 15 Nov 2012 12:48:59 -0200 Subject: Minor fixes --- templates/drupal.sh.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 83a4fe8..046c58c 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -83,7 +83,7 @@ function drupal_iterate { echo "Processing $drupal..." fi - if [ "$1" == "update" ] && [ "$1" == "cron-update" ]; then + if [ "$1" == "update" ] || [ "$1" == "cron-update" ]; then drupal_update $1 $drupal else drush -l $drupal $* @@ -405,14 +405,14 @@ elif [ "$1" == "cron" ]; then elif [ "$1" == "cron-update" ]; then SILENT="yes" drupal_iterate pm-refresh &> /dev/null - drupal_iterate pm-update + drupal_iterate cron-update elif [ "$1" == "deploy" ]; then shift drupal_deploy $* elif [ "$1" == "update" ]; then shift drupal_iterate pm-refresh - drupal_iterate pm-update $* + drupal_iterate update $* # Update alone might not trigger updatedb in a farm for all instances. drupal_iterate updatedb $* -- cgit v1.2.3