summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/openssh
diff options
context:
space:
mode:
authorMingli Yu <mingli.yu@windriver.com>2023-10-26 15:04:40 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-10-27 08:28:34 +0100
commit977820725c39736061b649389864a53e112e213d (patch)
treef7225d02278dc5c497f781fbed9bb38362759dec /meta/recipes-connectivity/openssh
parent217a4db53edbd88001f6390bbff39e5dd3d137af (diff)
downloadopenembedded-core-977820725c39736061b649389864a53e112e213d.tar.gz
openssh: Don't hardcode the dir in sshd.service
Don't hardcode the directory of the binary in sshd.service. Signed-off-by: Mingli Yu <mingli.yu@windriver.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/openssh')
-rw-r--r--meta/recipes-connectivity/openssh/openssh/sshd.service2
1 files changed, 1 insertions, 1 deletions
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