Using Drush to update Drupal 6 core on multisite installation
-
16-10-2019 - |
Pergunta
I'm running multiple sites on a single Drupal 6 installation. I'd like to use drush to update Drupal core to the latest version without having to unlock update.php via settings for each site and then going to update.php for each of the different urls (there are over 10 sites).
Is there a drush command to update drupal core and run update.php for all sites at once?
Solução
There's no one single command to do it but we use a bash script that follows this pattern:
- ls sites folder for all directories
- pass resulting output to
drush -l $variable sql-dump > /home/user/backup/$variable.sql
- pass resulting output to
drush -l $variable updb --yes
Hope this helps.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a drupal.stackexchange