From 5550ff5e9a4dd188f98e2d22df0289dca692001a Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 8 Sep 2010 08:16:12 -0700 Subject: ganglia - fix style issues --- Library/Formula/ganglia.rb | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/ganglia.rb b/Library/Formula/ganglia.rb index 747b1c77b..fbd93fdc6 100644 --- a/Library/Formula/ganglia.rb +++ b/Library/Formula/ganglia.rb @@ -21,8 +21,7 @@ class Ganglia #{HOMEBREW_PREFIX}/etc/gmond.conf" unless File.exists? "#{HOMEBREW_PREFIX}/etc/gmond.conf" - end + system "#{bin}/gmond -t > #{etc}/gmond.conf" unless File.exists? "#{etc}/gmond.conf" # Install the web files - (share + "ganglia").install "web" + (share+"ganglia").install "web" # Install man pages man1.install Dir['mans/*'] end def caveats; <<-EOS.undent - If you did not have the config file - #{HOMEBREW_PREFIX}/etc/gmond.conf - one was created for you. + If you didn't have a default config file, one was created here: + #{etc}/gmond.conf - You might want to copy - #{prefix}/share/ganglia/web/* to someplace - served by a PHP-capable web server. + You might want to copy these someplace served by a PHP-capable web server: + #{share}/ganglia/web/* to someplace EOS end end -- cgit v1.2.3