/[drupal]/contributions/modules/provision/web_server/verify.provision.inc
ViewVC logotype

Contents of /contributions/modules/provision/web_server/verify.provision.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.14 - (show annotations) (download) (as text)
Mon Sep 7 13:11:56 2009 UTC (2 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-4-ALPHA2
Changes since 1.13: +1 -0 lines
File MIME type: text/x-php
#515052 by David Goode and me - allow arbitrary ports in the backend
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 }

  ViewVC Help
Powered by ViewVC 1.1.2