Commit ccb4e985 authored by anarcat's avatar anarcat

Revert "1081536 rollback platform apache configs"

This reverts commit f7a07113.

The problem with this approach is that if we have sites in the platform
and fail to verify it, removing the apache config would actually break
the platform even more. We do not want that.

What we want is a provision-install on platforms that can be rolled back
properly too. It's harder than this.
parent f7a07113
......@@ -36,16 +36,6 @@ class provisionService_http extends provisionService {
$this->parse_configs();
}
/**
* Hook into command_invoke for provision-verify
*
* This deletes the http configuration for platforms
*
* @see ::verify_platform_cmd()
*/
function verify_rollback_platform_cmd() {
$this->delete_config($this->context->type);
}
/**
* Register the http handler for platforms, based on the web_server option.
......
......@@ -218,33 +218,10 @@ function drush_provision_save($alias = null) {
}
}
/**
* Implementation of drush_hook_verify()
*
* This is a shortcut to avoid declaring that hook for all object
* combinations.
*
* @see provisionContext::command_invoke()
*/
function drush_provision_verify() {
d()->command_invoke('verify');
}
/**
* Implementation of drush_hook_verify_rollback()
*
* This is to make sure that the command_invoke() magic is also
* invoked on rollbacks for the contexts.
*
* We abuse a bit the semantics here by appending _rollback, but it's
* better than nothing.
*
* @see provisionContext::command_invoke()
*/
function drush_provision_verify_rollback() {
d()->command_invoke('verify_rollback');
}
function _provision_default_web_group() {
$info = posix_getgrgid(posix_getgid());
$common_groups = array(
......
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