Project

General

Profile

DrupalDrushUpdate » History » Revision 48

Revision 47 (Andreas Kohlbecker, 05/31/2021 12:31 PM) → Revision 48/50 (Andreas Kohlbecker, 05/31/2021 12:34 PM)

# Updating Drupal multi-site multisite installations with Drush 


 ## Requirements 

 Please see [README.md / Preparation](https://github.com/cybertaxonomy/cdm-dataportal#preparation) 

 and for multi-site installations 

 * [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. 

 ## How Important  

 It is important that the zen theme is not updated automatically. The site configured as reference site for the code update will be tested by the script for having the zen theme enabled. To protect the zen theme from being modified by drush the site will be switched to the `bartik` theme while running the code update.  

 ## Preparation 

 The formerly used update method has been superseded. Please refer to the [README.md / Update method 2](https://github.com/cybertaxonomy/cdm-dataportal#update---method-2) and its specific sub chapters [Updating to a specific cdm-dataportal release](https://github.com/cybertaxonomy/cdm-dataportal#updating-to-a-specific-cdm-dataportal-release) and [Updating drupal and modules](https://github.com/cybertaxonomy/cdm-dataportal#updating-drupal-and-modules) 

 you may want to use below command for multi-site installations 

 ~~~ 
 scripts/admin/update-dependencies.sh --deactivate-install --multi-site 
 ~~~ 

 ## 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} 
 ~~~