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?

Foi útil?

Solução

There's no one single command to do it but we use a bash script that follows this pattern:

  1. ls sites folder for all directories
  2. pass resulting output to drush -l $variable sql-dump > /home/user/backup/$variable.sql
  3. 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
scroll top