Changeset 12163

Show
Ignore:
Timestamp:
09/12/07 13:17:16 (1 year ago)
Author:
piotras
Message:

install_vhost "logically fixed" :)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midgard/data/midgard_quick_setup.php

    r12149 r12163  
    113113    public function install_vhost() 
    114114    { 
    115         midgard_setup_log::write(_("Installing and configuring Apache virtual host")); 
     115        midgard_setup_cli::message(_("Preparing to configure Apache virtual host")); 
    116116         
    117         try { 
    118  
    119             $this->midgard_setup_vhost = 
    120                 new midgard_setup_vhost(&$this->midgard_setup_config,  
    121                     $this->host_name, $this->host_port); 
    122          
    123         } catch (Exception $e) { 
    124  
    125             midgard_setup_cli::error($e->getMessage()); 
    126         } 
    127  
    128117        /* TODO 
    129118         * Try to get default host name */ 
    130119 
    131         $default_hostname = "localhost";  
     120        $default_hostname = exec("hostname");  
    132121 
    133122        if(!isset($this->host_name))  
     
    137126                $value = $default_hostname; 
    138127 
    139             $setup->set_vhost($value); 
     128            $this->set_vhost($value); 
     129        } 
     130 
     131        try  
     132        { 
     133            $this->midgard_setup_vhost = 
     134                new midgard_setup_vhost(&$this->midgard_setup_config, 
     135                $this->host_name, $this->host_port); 
     136                 
     137        } catch (Exception $e) { 
     138         
     139            midgard_setup_cli::error($e->getMessage()); 
    140140        } 
    141141