Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add more operating systems support #29

Closed
wants to merge 3 commits into from

Conversation

grimreaper
Copy link

No description provided.

@@ -3,7 +3,7 @@ def self.menu
"
- .restart/
- conf/
@/etc/apache2/
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/etc/apache/ is the correct path for default OSX.

@trogdoro
Copy link
Owner

trogdoro commented Feb 2, 2013

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}

@grimreaper grimreaper closed this Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants