From: Silvio Rhatto Date: Sat, 13 Mar 2010 13:43:58 +0000 (-0300) Subject: Adding 'run' action to drupal script X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=2b19efd8202236744b23ea93363b69e5b9b8c12d;p=puppet-drupal.git Adding 'run' action to drupal script --- diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 3a10864..85ba71a 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -146,7 +146,7 @@ function drupal_upgrade { # Main procedure if [ -z "$1" ]; then - echo "Usage: `basename $0` [arguments]" + echo "Usage: `basename $0` [arguments]" exit 1 elif [ "$1" == "cron" ]; then drupal_iterate cron @@ -162,4 +162,7 @@ elif [ "$1" == "updatedb" ]; then elif [ "$1" == "upgrade" ]; then shift drupal_upgrade $* +elif [ "$1" == "run" ]; then + shift + drupal_iterate $* fi