From 6c43e8403203805fa23171be80deb7717def034a Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Thu, 26 Oct 2023 15:04:40 +0800 Subject: openssh: Don't hardcode the dir in sshd.service Don't hardcode the directory of the binary in sshd.service. (From OE-Core rev: 977820725c39736061b649389864a53e112e213d) Signed-off-by: Mingli Yu Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- meta/recipes-connectivity/openssh/openssh/sshd.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-connectivity/openssh/openssh/sshd.service') diff --git a/meta/recipes-connectivity/openssh/openssh/sshd.service b/meta/recipes-connectivity/openssh/openssh/sshd.service index 6ace67d8ae..2a997b656a 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshd.service +++ b/meta/recipes-connectivity/openssh/openssh/sshd.service @@ -6,7 +6,7 @@ After=sshdgenkeys.service [Service] Environment="SSHD_OPTS=" EnvironmentFile=-/etc/default/ssh -ExecStartPre=/usr/bin/mkdir -p /var/run/sshd +ExecStartPre=@BASE_BINDIR@/mkdir -p /var/run/sshd ExecStart=-@SBINDIR@/sshd -D $SSHD_OPTS ExecReload=@BASE_BINDIR@/kill -HUP $MAINPID KillMode=process -- cgit v1.2.3-54-g00ecf