mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
monitoring plugins: fix path to sudo and mailq
this fixes check_mailq with postfix at least
This commit is contained in:
parent
be90b35b9e
commit
18090331d6
1 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook
|
||||
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, runCommand
|
||||
, coreutils, gnugrep, gnused, lm_sensors, net-snmp, openssh, openssl, perl
|
||||
, dnsutils, libdbi, libmysqlclient, zlib, openldap, procps
|
||||
, runtimeShell }:
|
||||
|
@ -44,6 +44,11 @@ in stdenv.mkDerivation {
|
|||
configureFlagsArray=(
|
||||
--with-ping-command='/run/wrappers/bin/ping -4 -n -U -w %d -c %d %s'
|
||||
--with-ping6-command='/run/wrappers/bin/ping -6 -n -U -w %d -c %d %s'
|
||||
--with-sudo-command='/run/wrappers/bin/sudo'
|
||||
--with-mailq-command='${runCommand "mailq-wrapper" {preferLocalBuild=true;} ''
|
||||
mkdir -p $out/bin
|
||||
ln -s /run/wrappers/bin/sendmail $out/bin/mailq
|
||||
''}/bin/mailq'
|
||||
)
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue