| 1 |
<?php
|
| 2 |
|
| 3 |
function drush_provision_apache_provision_verify($url = null) {
|
| 4 |
if (PROVISION_CONTEXT_PLATFORM) {
|
| 5 |
_provision_create_dir(drush_get_option('vhost_path'), dt("Virtual host configuration"), 0700);
|
| 6 |
$data = drush_get_merged_options();
|
| 7 |
$options = drush_get_merged_options();
|
| 8 |
$data['extra_config'] = "# Extra configuration from modules:\n";
|
| 9 |
$data['extra_config'] .= join("\n", drush_command_invoke_all('provision_apache_dir_config', $data));
|
| 10 |
_provision_apache_create_config('platform_' . $options['platform'] . '.conf', $data, _provision_apache_platform_template());
|
| 11 |
_provision_apache_create_server_config($url);
|
| 12 |
}
|
| 13 |
else {
|
| 14 |
_provision_apache_create_vhost_config($url);
|
| 15 |
}
|
| 16 |
_provision_apache_restart_apache(TRUE);
|
| 17 |
}
|
| 18 |
|
| 19 |
function drush_provision_apache_post_provision_verify($url = null) {
|
| 20 |
if (PROVISION_CONTEXT_PLATFORM) {
|
| 21 |
drush_set_option('master_url', drush_get_option('master_url'), 'drupal');
|
| 22 |
drush_set_option('publish_path', drush_get_option('publish_path'), 'drupal');
|
| 23 |
drush_set_option('web_host', drush_get_option('web_host', '127.0.0.1'), 'drupal');
|
| 24 |
drush_set_option('web_ip', drush_get_option('web_ip', ''), 'drupal');
|
| 25 |
drush_set_option('web_group', drush_get_option('web_group'), 'drupal');
|
| 26 |
drush_set_option('script_user', drush_get_option('script_user'), 'drupal');
|
| 27 |
drush_set_option('restart_cmd', drush_get_option('restart_cmd'), 'drupal');
|
| 28 |
drush_set_option('backup_path', drush_get_option('backup_path'), 'drupal');
|
| 29 |
drush_set_option('config_path', drush_get_option('config_path'), 'drupal');
|
| 30 |
}
|
| 31 |
}
|