aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-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
}