From f72b873ef9efc0b3c6c3a079d574ffe86e90515b Mon Sep 17 00:00:00 2001 From: David Newhall II Date: Thu, 13 Jun 2019 02:40:56 -0700 Subject: [PATCH] add comments --- templates/unifi-poller.rb.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/unifi-poller.rb.tmpl b/templates/unifi-poller.rb.tmpl index e438fa05..d1318f26 100644 --- a/templates/unifi-poller.rb.tmpl +++ b/templates/unifi-poller.rb.tmpl @@ -22,6 +22,9 @@ class UnifiPoller < Formula cd bin_path do system "dep", "ensure" system "make", "install", "VERSION=#{version}", "PREFIX=#{prefix}", "ETC=#{etc}" + # If this fails, the user gets a nice big warning about write permissions on their + # [/usr/local/]var/log folder. The alternative could be letting the app silently + # fail to start when it cannot write logs. This is better. Fix perms; reinstall. system "mkdir", "-p", "#{var}/log/unifi-poller" end end