aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-11-15 12:48:59 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-11-15 12:48:59 -0200
commit724a71ee1ccee4b48e9b936c1a0ba5dfdae69bcd (patch)
tree9f96079a5af6bc2fff5a37e0061a06642752b001
parent6f3f9e8bb7de5b626648fceb29d044619c641d88 (diff)
downloadpuppet-drupal-724a71ee1ccee4b48e9b936c1a0ba5dfdae69bcd.tar.gz
puppet-drupal-724a71ee1ccee4b48e9b936c1a0ba5dfdae69bcd.tar.bz2
Minor fixes
-rw-r--r--templates/drupal.sh.erb6
1 files 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 $*