/ Published in: Bash
We can use this in a shell script (while doing a backup process, an update, ...)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#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