Update log file location on macOS.

This commit is contained in:
David Newhall II 2019-06-18 23:33:43 -07:00
parent 4670953f7d
commit 7e54f06506
2 changed files with 6 additions and 6 deletions

View File

@ -15,8 +15,8 @@
<key>KeepAlive</key>
<true/>
<key>StandardErrorPath</key>
<string>/usr/local/var/log/unifi-poller/log</string>
<string>/usr/local/var/log/unifi-poller.log</string>
<key>StandardOutPath</key>
<string>/usr/local/var/log/unifi-poller/log</string>
<string>/usr/local/var/log/unifi-poller.log</string>
</dict>
</plist>

View File

@ -25,7 +25,7 @@ class UnifiPoller < Formula
# 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"
system "touch", "#{var}/log/unifi-poller.log"
end
end
def caveats
@ -33,7 +33,7 @@ class UnifiPoller < Formula
This application will not work until the config file has authentication
information for a Unifi Controller and an Influx Database. Edit the config
file at #{etc}/unifi-poller/up.conf then start the application with
brew services start unifi-poller ~ log file: #{var}/log/unifi-poller/log
brew services start unifi-poller ~ log file: #{var}/log/unifi-poller.log
The manual explains the config file options: man unifi-poller
EOS
end
@ -56,9 +56,9 @@ class UnifiPoller < Formula
<key>KeepAlive</key>
<true/>
<key>StandardErrorPath</key>
<string>#{var}/log/unifi-poller/log</string>
<string>#{var}/log/unifi-poller.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/unifi-poller/log</string>
<string>#{var}/log/unifi-poller.log</string>
</dict>
</plist>
EOS