# Update all drupal instances in the host
function drupal_update {
+ if [ -z "$update" ]; then
+ update="update"
+ fi
+
for version in $SERIES; do
# Setup base folder
base="$BASE/drupal-$version"
# Ignore symlinks so sites are updated just once
if [ ! -h "$drupal" ] || [ ! -h "`readlink $drupal`" ]; then
echo "Processing $drupal..."
- drush -l $drupal update
+ drush -l $drupal $update
fi
done
elif [ "$1" == "update" ]; then
shift
drupal_update $*
+elif [ "$1" == "updatedb" ]; then
+ shift
+ update="updatedb"
+ drupal_update $*
elif [ "$1" == "upgrade" ]; then
shift
drupal_upgrade $*