diff --git a/Formula/nagios.rb b/Formula/nagios.rb index c4134ecdeb..f6763efd53 100644 --- a/Formula/nagios.rb +++ b/Formula/nagios.rb @@ -70,6 +70,7 @@ class Nagios < Formula config = etc/"nagios/nagios.cfg" return unless File.exist?(config) return if File.read(config).include?(ENV["USER"]) + inreplace config, "brew", ENV["USER"] end