summaryrefslogtreecommitdiff
path: root/homebrew/nagios/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/nagios/.make.sh-auto')
-rw-r--r--homebrew/nagios/.make.sh-auto6
1 files changed, 6 insertions, 0 deletions
diff --git a/homebrew/nagios/.make.sh-auto b/homebrew/nagios/.make.sh-auto
new file mode 100644
index 000000000..ca3126413
--- /dev/null
+++ b/homebrew/nagios/.make.sh-auto
@@ -0,0 +1,6 @@
+pkg:setup
+(var/"lib/nagios/rw").mkpath
+config = etc/"nagios/nagios.cfg"
+return unless File.exist?(config)
+return if File.read(config).include?(ENV["USER"])
+inreplace config, "brew", ENV["USER"]