Return to Snippet

Revision: 30712
at August 20, 2010 00:44 by isholgueras


Updated Code
#Activate maintenance mode
drush vset --always-set site_offline 1
drush cc all

#Desactivate maintenance mode
drush vset --always-set site_offline 0
drush cc all

Revision: 30711
at August 19, 2010 22:36 by isholgueras


Initial Code
#Activate maintenance mode
drush vset site_offline 1

#Desactivate maintenance mode
drush vset site_offline 0

Initial URL

                                

Initial Description
We can use this in a shell script (while doing a backup process, an update, ...)

Initial Title
Activate Drupal maintenance mode using drush

Initial Tags
drupal

Initial Language
Bash