diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-03-05 10:35:10 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-03-05 10:35:10 -0300 |
commit | e86d178f388fce27337fc434a4abd2245634e963 (patch) | |
tree | 34bb10624cfcf843860b0ad46f5151726409ceb0 | |
parent | 9392af1d42c57cc8caf671b80ed0db1243764497 (diff) | |
download | puppet-drupal-e86d178f388fce27337fc434a4abd2245634e963.tar.gz puppet-drupal-e86d178f388fce27337fc434a4abd2245634e963.tar.bz2 |
Adding action 'updatedb' into drupal script
-rw-r--r-- | templates/drupal.sh.erb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index b966f93..26060fd 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -40,6 +40,10 @@ function drupal_deploy { # Update all drupal instances in the host function drupal_update { + if [ -z "$update" ]; then + update="update" + fi + for version in $SERIES; do # Setup base folder base="$BASE/drupal-$version" @@ -57,7 +61,7 @@ function drupal_update { # Ignore symlinks so sites are updated just once if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then echo "Processing $drupal..." - drush -l $drupal update + drush -l $drupal $update fi done @@ -154,6 +158,10 @@ elif [ "$1" == "deploy" ]; then elif [ "$1" == "update" ]; then shift drupal_update $* +elif [ "$1" == "updatedb" ]; then + shift + update="updatedb" + drupal_update $* elif [ "$1" == "upgrade" ]; then shift drupal_upgrade $* |