trogdoro / xiki

A shell console with GUI features
http://xiki.org
Other
3.76k stars 207 forks source link

add more operating systems support #29

Closed grimreaper closed 4 months ago

trogdoro commented 11 years ago

The "/etc/apache2/" path is actually correct for the default apache on OSX. Could we dynamically show the correct path based on where httpd.conf is on the system? Something like...

    conf_dir = {
      "/usr/sbin/httpd" => "/etc/apache2/",
      "/usr/local/bin/httpd" => "/usr/local/etc/apache2/",
    }[`which httpd`.strip]   # Assume the conf dir based on where the binary is

    def self.menu
      "
      - .restart/
      - conf/
        @#{conf_dir}