aboutsummaryrefslogtreecommitdiff
path: root/templates/drupal.sh.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-30 14:32:45 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-30 14:32:45 -0200
commit69dd03f5b9b8dbcc9fa707ee06634f79a919b59c (patch)
tree4718be49cb659433bfc33ee9e51e2d3584bd866a /templates/drupal.sh.erb
parent4555672c725e681455404bf0a852f02d2778cc1d (diff)
downloadpuppet-drupal-69dd03f5b9b8dbcc9fa707ee06634f79a919b59c.tar.gz
puppet-drupal-69dd03f5b9b8dbcc9fa707ee06634f79a919b59c.tar.bz2
Minor fixes at template script
Diffstat (limited to 'templates/drupal.sh.erb')
-rw-r--r--templates/drupal.sh.erb12
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
}