depot/third_party/nixpkgs/pkgs/applications/misc/nut/nutshutdown-conf-default.patch
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

10 lines
361 B
Diff

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