Commit e43c97d3 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Add a confirmation to the hostmaster migrate command and wipe out the crontab...

Add a confirmation to the hostmaster migrate command and wipe out the crontab so that the dispatcher is no longer invoked
parent 4f3de667
......@@ -20,6 +20,13 @@ function drush_provision_hostmaster_migrate_validate($site, $platform) {
}
function drush_provision_pre_hostmaster_migrate($site, $platform) {
if (!drush_confirm("This command will replace your crontab entry. continue?")) {
drush_set_error('PROVISION_CANCEL_MIGRATE', 'Cancelling');
}
// wipe out cron entry
exec('crontab -r');
// we can't rely on the park command to exist in pre-0.4 alpha 2 releases
drush_backend_invoke('hostmaster park', array($site, 'uri' => $site));
}
......
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