fixes the webserver default file path issues
This commit is contained in:
parent
1b7b4385c0
commit
c002283387
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue