diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-07-20 21:36:18 +0200 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2013-07-20 21:44:01 +0200 |
commit | 1d59e54ebc58827053ff17b732ecea47d4eb24b2 (patch) | |
tree | 9626a8f47c967ad25d828d6efa18dff00bf716f5 /pkgs/servers | |
parent | 8ea138d2121c008cb009fa0f34917ff560af182b (diff) | |
download | nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar.gz nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar.bz2 nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar.lz nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar.xz nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.tar.zst nixlib-1d59e54ebc58827053ff17b732ecea47d4eb24b2.zip |
apcupsd: fix hostname command patching
The source has HOSTNAME=`hostname` (capture output of hostname command) but currently it is replaced with HOSTNAME="/path/to/hostname" (which is just a plain string). Fix it by substituting with HOSTNAME=`/path/to/hostname`.
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/apcupsd/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/apcupsd/default.nix b/pkgs/servers/apcupsd/default.nix index 58b3df1b436e..b8a8cbbfa1c9 100644 --- a/pkgs/servers/apcupsd/default.nix +++ b/pkgs/servers/apcupsd/default.nix @@ -39,7 +39,7 @@ stdenv.mkDerivation rec { postInstall = '' for file in "$out"/etc/apcupsd/*; do sed -i -e 's|^WALL=.*|WALL="${utillinux}/bin/wall"|g' \ - -e 's|^HOSTNAME=.*|HOSTNAME="${nettools}/bin/hostname"|g' \ + -e 's|^HOSTNAME=.*|HOSTNAME=`${nettools}/bin/hostname`|g' \ "$file" done ''; |