about summary refs log tree commit diff
path: root/pkgs/applications/misc/nut/nutshutdown-conf-default.patch
blob: 28e5a286126ddf0141469269039a7a15c81f74a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
diff --git a/scripts/systemd/nutshutdown.in b/scripts/systemd/nutshutdown.in
index ace2485b3..9dee869bb 100755
--- a/scripts/systemd/nutshutdown.in
+++ b/scripts/systemd/nutshutdown.in
@@ -1,4 +1,5 @@
 #!/bin/sh
+export NUT_CONFPATH="${NUT_CONFPATH-/etc/nut}"
 
 # This script requires both nut-server (drivers)
 # and nut-client (upsmon) to be present locally