openssh: use bin instead of sbin folder

References #11939.
This commit is contained in:
Aneesh Agrawal 2016-03-05 23:56:32 -05:00
parent 0bf8a1a86d
commit bb39304ce6
2 changed files with 2 additions and 1 deletions

@ -263,7 +263,7 @@ in
serviceConfig =
{ ExecStart =
"${cfgc.package}/sbin/sshd " + (optionalString cfg.startWhenNeeded "-i ") +
"${cfgc.package}/bin/sshd " + (optionalString cfg.startWhenNeeded "-i ") +
"-f ${pkgs.writeText "sshd_config" cfg.extraConfig}";
KillMode = "process";
} // (if cfg.startWhenNeeded then {

@ -46,6 +46,7 @@ stdenv.mkDerivation rec {
# I set --disable-strip because later we strip anyway. And it fails to strip
# properly when cross building.
configureFlags = [
"--sbindir=\${out}/bin"
"--localstatedir=/var"
"--with-pid-dir=/run"
"--with-mantype=man"