blob: 75e83815e5117fa56a600a4002b1585e1f6301c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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
|