Merge pull request #543 from unpoller/fix-webserver-directory

fixes the webserver default file path issues
This commit is contained in:
Cody Lee 2023-04-17 08:07:36 -05:00 committed by GitHub
commit 16ea972558
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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