diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2009-12-30 14:32:45 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2009-12-30 14:32:45 -0200 |
commit | 69dd03f5b9b8dbcc9fa707ee06634f79a919b59c (patch) | |
tree | 4718be49cb659433bfc33ee9e51e2d3584bd866a | |
parent | 4555672c725e681455404bf0a852f02d2778cc1d (diff) | |
download | puppet-drupal-69dd03f5b9b8dbcc9fa707ee06634f79a919b59c.tar.gz puppet-drupal-69dd03f5b9b8dbcc9fa707ee06634f79a919b59c.tar.bz2 |
Minor fixes at template script
-rw-r--r-- | templates/drupal.sh.erb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/drupal.sh.erb b/templates/drupal.sh.erb index 5b641c0..74a670a 100644 --- a/templates/drupal.sh.erb +++ b/templates/drupal.sh.erb @@ -45,7 +45,7 @@ function drupal_update { base="$BASE/drupal-$version" if [ ! -d "$base/sites" ]; then - break + continue fi # Setup site folders @@ -55,15 +55,19 @@ function drupal_update { # Issue updates for drupal in $drupals; do # Ignore symlinks so sites are updated just once - if [ ! -h $drupal ]; then + if [ ! -h "$drupal" ]; then echo "Processing $drupal..." drush -l $drupal update fi done # Fix permissions - chown -R root.root $base/sites/all/modules - chown -R root.root $base/sites/all/themes + if [ -e "$base/sites/all/modules" ]; then + chown -R root.root $base/sites/all/modules + fi + if [ -e "$base/sites/all/themes" ]; then + chown -R root.root $base/sites/all/themes + fi done } |