Commit c53e920c authored by helmo's avatar helmo

Add some debug output to hostmaster installation

parent 5c73c91e
......@@ -222,6 +222,8 @@ function drush_provision_hostmaster_install($site = NULL) {
return;
}
drush_log('Preparing the hostmaster frontend installation.', 'notice');
$platform_name = '@platform_hostmaster';
drush_invoke_process('@none', "provision-save", array($platform_name), array(
'context_type' => 'platform',
......@@ -239,6 +241,8 @@ function drush_provision_hostmaster_install($site = NULL) {
// exit if an error has occured.
if (drush_get_error()) {
drush_log('Caught drush error, ending drush_provision_hostmaster_install - B', 'debug');
drush_log(print_r(drush_get_error_log(), 1), 'debug');
return false;
}
......@@ -255,11 +259,15 @@ function drush_provision_hostmaster_install($site = NULL) {
'profile' => $profile,
'drush_aliases' => 'hm',
));
drush_log('Starting with the hostmaster frontend installation.', 'notice');
$data = provision_backend_invoke($site_name, 'provision-install', array(), array('client_email' => drush_get_option('client_email')));
provision_backend_invoke($site_name, 'provision-verify');
// exit if an error has occured.
if (drush_get_error()) {
drush_log('Caught drush error, ending drush_provision_hostmaster_install - C', 'debug');
drush_log(print_r(drush_get_error_log(), 1), 'debug');
return false;
}
......
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