aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-09-27 00:13:59 -0300
committerSilvio Rhatto <rhatto@riseup.net>2012-09-27 00:13:59 -0300
commit83b868cb893515188f1c16522103ce6ac063600b (patch)
treee9f741df0c49ad14103c2808b0eaa10544890a45 /templates
parentabb77b0ef54dade4362f7048840e7e9137c53862 (diff)
downloadpuppet-drupal-83b868cb893515188f1c16522103ce6ac063600b.tar.gz
puppet-drupal-83b868cb893515188f1c16522103ce6ac063600b.tar.bz2
Adding SILENT mode and drupal-update action into cron
Diffstat (limited to 'templates')
-rw-r--r--templates/drupal.sh.erb5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb
index 62c9aef..9285ba8 100644
--- a/templates/drupal.sh.erb
+++ b/templates/drupal.sh.erb
@@ -71,7 +71,7 @@ function drupal_iterate {
# Process sites just once, avoiding symlinks
if echo $settings_hash | grep -q -v $hash; then
settings_hash="$settings_hash-$hash"
- if [ "$1" != "cron" ]; then
+ if [ "$1" != "cron" ] || [ "$SILENT" != "yes" ]; then
echo "Processing $drupal..."
fi
drush -l $drupal $*
@@ -364,6 +364,9 @@ if [ -z "$1" ]; then
exit 1
elif [ "$1" == "cron" ]; then
drupal_iterate cron
+elif [ "$1" == "cron-update" ]; then
+ SILENT="yes"
+ drupal_iterate update -y -p | grep -v -E 'Unknown|Up-to-date|Atualizado|Desconhecido'
elif [ "$1" == "deploy" ]; then
shift
drupal_deploy $*