Commit 59c2e2ae authored by anarcat's avatar anarcat

fail gracefully on hosting-pause missing, do what hosting-pause does for now

parent 7732bb20
......@@ -137,9 +137,22 @@ We are making the following assumptions:
}
}
/**
* Prepare the hostmaster site for migration
*
* @deprecated most of the stuff here needs to be removed in favor of
* hosting-pause, but since that exists only starting with rc3, we
* need to copy the content of it here. once 1.0 is released, we can
* remove that code and just keep hosting-pause.
*/
function drush_provision_pre_hostmaster_migrate($site, $platform) {
provision_backend_invoke(drush_get_option('site_name'), 'hosting-pause');
// wipe out cron entry
exec('crontab -r');
// we can't rely on update.php to run that because it will run too late. this can be removed in 0.5 and above
provision_backend_invoke(drush_get_option('site_name'), 'sqlq', array("UPDATE {system} SET weight = 0 WHERE type='module' AND name='hosting';"));
// we ignore errors here through integrate = FALSE
provision_backend_invoke(drush_get_option('site_name'), 'hosting-pause', array(), array('#integrate' => FALSE));
}
function drush_provision_hostmaster_migrate($site, $platform) {
......
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