aboutsummaryrefslogtreecommitdiff
path: root/templates/drupal-update.sh.erb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-12-29 18:12:10 -0200
committerSilvio Rhatto <rhatto@riseup.net>2009-12-29 18:12:10 -0200
commit2d301e9dddb0bc2e34448600ac5b4a4317c1258f (patch)
tree1f12807dd383b428509de8c37a44e9692a82b72c /templates/drupal-update.sh.erb
parent1812d8167cd95beaa4106755890f385a814b141c (diff)
downloadpuppet-drupal-2d301e9dddb0bc2e34448600ac5b4a4317c1258f.tar.gz
puppet-drupal-2d301e9dddb0bc2e34448600ac5b4a4317c1258f.tar.bz2
Using a single drupal management script
Diffstat (limited to 'templates/drupal-update.sh.erb')
-rw-r--r--templates/drupal-update.sh.erb24
1 files changed, 0 insertions, 24 deletions
diff --git a/templates/drupal-update.sh.erb b/templates/drupal-update.sh.erb
deleted file mode 100644
index 75e8381..0000000
--- a/templates/drupal-update.sh.erb
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-#
-# This file is used to update all drupal instances in the host.
-#
-
-for version in 5 6; do
- # Setup base and sites folders
- base="<%= $apache_www_folder %>/drupal-$version"
- cd $base/sites
- drupals="`ls -I default -I all`"
-
- # Issue updates
- for drupal in $drupals; do
- # Ignore symlinks so sites are updated just once
- 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
-done