Commit 49a9fdc1 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian
Browse files

#632984 - provision migrate should put site offline during migration

parent 23b7b5aa
...@@ -31,6 +31,8 @@ function drush_provision_drupal_provision_migrate_validate($url = null, $platfor ...@@ -31,6 +31,8 @@ function drush_provision_drupal_provision_migrate_validate($url = null, $platfor
* Make a backup before making any changes, and add extract the file we are restoring from * Make a backup before making any changes, and add extract the file we are restoring from
*/ */
function drush_provision_drupal_pre_provision_migrate($url, $platform) { function drush_provision_drupal_pre_provision_migrate($url, $platform) {
drush_set_option('site_offline', 1);
_provision_drupal_create_settings_file($url);
drush_invoke('provision backup', $url); drush_invoke('provision backup', $url);
} }
......
...@@ -49,6 +49,10 @@ ...@@ -49,6 +49,10 @@
$conf['cache'] = 1; $conf['cache'] = 1;
$conf['clean_url'] = 1; $conf['clean_url'] = 1;
<?php if ($site_offline) : ?>
$conf['site_offline'] = 1;
<?php endif ?>
<?php print $extra_config; ?> <?php print $extra_config; ?>
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment