fixes the webserver default file path issues

This commit is contained in:
Cody Lee 2023-04-13 09:56:24 -05:00
parent 1b7b4385c0
commit c002283387
No known key found for this signature in database
4 changed files with 5 additions and 5 deletions

View File

@ -97,7 +97,7 @@
enable = false enable = false
port = 37288 port = 37288
# The HTML path is different on Windows and BSD/macOS. # 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_cert_path = ""
ssl_key_path = "" ssl_key_path = ""
# How many events per event group to hold. 200-2000. Use fewer with many sites. # How many events per event group to hold. 200-2000. Use fewer with many sites.

View File

@ -26,7 +26,7 @@
"webserver": { "webserver": {
"enable": false, "enable": false,
"port": 37288, "port": 37288,
"html_path": "/usr/lib/unifi-poller/web", "html_path": "/usr/local/lib/unpoller/web",
"ssl_cert_path": "", "ssl_cert_path": "",
"ssl_key_path": "", "ssl_key_path": "",
"max_events": 200, "max_events": 200,

View File

@ -29,7 +29,7 @@ influxdb:
webserver: webserver:
enable: false enable: false
port: 37288 port: 37288
html_path: "/usr/lib/unifi-poller/web" html_path: "/usr/local/lib/unpoller/web"
ssl_cert_path: "" ssl_cert_path: ""
ssl_key_path: "" ssl_key_path: ""
max_events: 200 max_events: 200

View File

@ -53,10 +53,10 @@ func DefaultObjPath() string {
case "netbsd": case "netbsd":
fallthrough fallthrough
case "openbsd": case "openbsd":
return "/usr/local/lib/unifi-poller" return "/usr/local/lib/unpoller"
default: default:
// linux and everything else // linux and everything else
return "/usr/lib/unifi-poller" return "/usr/local/lib/unpoller"
} }
} }