diff --git a/examples/up.conf.example b/examples/up.conf.example index 7352e5fc..c704d979 100644 --- a/examples/up.conf.example +++ b/examples/up.conf.example @@ -97,7 +97,7 @@ enable = false port = 37288 # The HTML path is different on Windows and BSD/macOS. - html_path = "/usr/lib/unifi-poller/web" + html_path = "/usr/local/lib/unpoller/web" ssl_cert_path = "" ssl_key_path = "" # How many events per event group to hold. 200-2000. Use fewer with many sites. diff --git a/examples/up.json.example b/examples/up.json.example index 3a756bcd..27417903 100644 --- a/examples/up.json.example +++ b/examples/up.json.example @@ -26,7 +26,7 @@ "webserver": { "enable": false, "port": 37288, - "html_path": "/usr/lib/unifi-poller/web", + "html_path": "/usr/local/lib/unpoller/web", "ssl_cert_path": "", "ssl_key_path": "", "max_events": 200, diff --git a/examples/up.yaml.example b/examples/up.yaml.example index 41ea7817..3607ecef 100644 --- a/examples/up.yaml.example +++ b/examples/up.yaml.example @@ -29,7 +29,7 @@ influxdb: webserver: enable: false port: 37288 - html_path: "/usr/lib/unifi-poller/web" + html_path: "/usr/local/lib/unpoller/web" ssl_cert_path: "" ssl_key_path: "" max_events: 200 diff --git a/pkg/poller/config.go b/pkg/poller/config.go index 519299f6..3d112212 100644 --- a/pkg/poller/config.go +++ b/pkg/poller/config.go @@ -53,10 +53,10 @@ func DefaultObjPath() string { case "netbsd": fallthrough case "openbsd": - return "/usr/local/lib/unifi-poller" + return "/usr/local/lib/unpoller" default: // linux and everything else - return "/usr/lib/unifi-poller" + return "/usr/local/lib/unpoller" } }