DrupalDrushUpdate » History » Revision 40
Revision 39 (Andreas Kohlbecker, 12/09/2016 02:28 PM) → Revision 40/50 (Andreas Kohlbecker, 07/23/2018 08:13 AM)
# Updating Drupal multisite installations with Drush ## Requirements * [Drush 6 installed](http://pear.drush.org/) or higher version * [edit server-scripts](http://dev.e-taxonomy.eu/trac/browser/trunk/server-scripts) installed in `/opt/server-scripts`. And `/opt/server-scripts/dataportal-admin` added to the PATH environment variable. ## Important **WARNING:** It is important that the zen theme is not updated, therefore a peer site which is not having a zen based theme activated must be used used for the code updates !!!! ## Preparation Create a shell script `drupal-multisite-update` to configure and trigger the drupal multisite update with the following content: ~~~ #!/bin/bash DRUPAL_ROOT=/var/www/drupal-7/ SITE=http://my.server.com/dataportal/cichorieae/ # In case this is empty, the default email address ProjectAdmin@bgbm.org will be used EMAIL='' cd $DRUPAL_ROOT /opt/server-scripts/drupal/drupal-multisite-update.sh $SITE $EMAIL ~~~ Make it executable ## Execution run the script: ~~~ ./drupal-multisite-update ~~~ The script will print out the list of pending security updates. And waits for user confirmation in order to proceed. ## Troublesooting ### drush updatedb warns about missing modules Missing modules can be fixed using the script `drupal-fix-missing-modules.sh` which is contained in `server-scripts/drupal/`. In advance of using this script you need to download the `module_missing_message_fixer`: ~~~ drush pm-download --destination=sites/all/modules/ module_missing_message_fixer ~~~ Then you can run the script: ~~~ drupal-fix-missing-modules.sh {SITE-URL} ~~~