add comments

This commit is contained in:
David Newhall II 2019-06-13 02:40:56 -07:00
parent 6688a5a81f
commit f72b873ef9
1 changed files with 3 additions and 0 deletions

View File

@ -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