Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

_provision_apache_create_config ( file,
data,
template 
)

Write an apache configuration file

Definition at line 101 of file provision_apache.drush.inc.

References provision_render_config().

Referenced by _provision_apache_create_vhost_config().

                                                                  {
  drush_log(dt("Generating apache host configuration file %file.", array('%file' => $file)));
  $writable = provision_path("writable", drush_get_option('vhost_path'), TRUE , NULL,
      dt("Virtual host configuration path @path is not writable."), 
      'PROVISION_VHOST_PATH_NOT_WRITABLE');
  
  if ($writable) {
    $file = fopen(drush_get_option('vhost_path') .'/'. $file, "w");
    $text = provision_render_config($template, $data);
    fwrite($file, $text);
    fclose($file);
  }
}


Generated by  Doxygen 1.6.0   Back to index