From 1d59e54ebc58827053ff17b732ecea47d4eb24b2 Mon Sep 17 00:00:00 2001 From: Bjørn Forsman Date: Sat, 20 Jul 2013 21:36:18 +0200 Subject: 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`. --- pkgs/servers/apcupsd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/servers/apcupsd/default.nix') 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 ''; -- cgit 1.4.1