- Add support for OpenSSL 1.1.0 library, allow TLSv1 and higher (not just TLSv1) and report TLS version used in debug mode level 3 and higher (boo#1069988, openssl-1_1.patch) - Fix missing pointer dereference in upssched (nut-upssched.patch) - Support for allowfrom parameter was removed in version 2.4.0 (nut-preconfig.patch) OBS-URL: https://build.opensuse.org/request/show/547147 OBS-URL: https://build.opensuse.org/package/show/hardware/nut?expand=0&rev=74
45 lines
1.3 KiB
Diff
45 lines
1.3 KiB
Diff
--- conf/hosts.conf.sample
|
|
+++ conf/hosts.conf.sample
|
|
@@ -27,3 +27,5 @@
|
|
# MONITOR myups@localhost "Local UPS"
|
|
# MONITOR su2200@10.64.1.1 "Finance department"
|
|
# MONITOR matrix@shs-server.example.edu "Sierra High School data room #1"
|
|
+
|
|
+MONITOR myups@localhost "Local UPS"
|
|
--- conf/ups.conf.sample
|
|
+++ conf/ups.conf.sample
|
|
@@ -102,3 +102,8 @@
|
|
#
|
|
# To find out if your driver supports any extra settings, start it with
|
|
# the -h option and/or read the driver's documentation.
|
|
+
|
|
+[myups]
|
|
+ driver = undefined
|
|
+ port = /dev/undefined
|
|
+ desc = "Local UPS"
|
|
--- conf/upsd.users.sample
|
|
+++ conf/upsd.users.sample
|
|
@@ -62,3 +62,11 @@
|
|
# The matching MONITOR line in your upsmon.conf would look like this:
|
|
#
|
|
# MONITOR myups@localhost 1 upsmon pass master (or slave)
|
|
+
|
|
+[upsmaster]
|
|
+ password = @UPSD_INITIAL_MASTER_PASSWORD@
|
|
+ upsmon master
|
|
+
|
|
+[upsslave]
|
|
+ password = @UPSD_INITIAL_SLAVE_PASSWORD@
|
|
+ upsmon slave
|
|
--- conf/upsmon.conf.sample.in
|
|
+++ conf/upsmon.conf.sample.in
|
|
@@ -84,6 +84,8 @@
|
|
# MONITOR su700@server.example.com 1 upsmon secretpass slave
|
|
# MONITOR myups@localhost 1 upsmon pass master (or slave)
|
|
|
|
+MONITOR myups@localhost 1 upsmaster @UPSD_INITIAL_MASTER_PASSWORD@ master
|
|
+
|
|
# --------------------------------------------------------------------------
|
|
# MINSUPPLIES <num>
|
|
#
|