summaryrefslogtreecommitdiffstats
path: root/rules/openssh.postinst
diff options
context:
space:
mode:
authorArtur Wiebe <artur@4wiebe.de>2020-11-16 20:11:13 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2020-11-20 11:37:24 +0100
commitabfc4e40a6c5358d00a7f0e24b4b10888b7e8090 (patch)
tree6b54cb8c352faa8561892773bac9340648d24457 /rules/openssh.postinst
parent177451a5d9e20dc71a250bf5221dfab31f2d60e1 (diff)
downloadptxdist-abfc4e40a6c5358d00a7f0e24b4b10888b7e8090.tar.gz
ptxdist-abfc4e40a6c5358d00a7f0e24b4b10888b7e8090.tar.xz
openssh: make host key generation optional
If not set host keys must be provided in some other way (otherwise sshd will not start) Signed-off-by: Artur Wiebe <artur@4wiebe.de> Acked-by: Roland Hieber <rhi@pengutronix.de> Message-Id: <20201116191113.239636-1-artur@4wiebe.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/openssh.postinst')
-rw-r--r--rules/openssh.postinst4
1 files changed, 3 insertions, 1 deletions
diff --git a/rules/openssh.postinst b/rules/openssh.postinst
index fcfbf9149..a7bbf1c58 100644
--- a/rules/openssh.postinst
+++ b/rules/openssh.postinst
@@ -1,2 +1,4 @@
#!/bin/sh
-$DESTDIR/usr/sbin/enable-rc-once openssh
+if [ -f $DESTDIR/etc/rc.once.d/openssh ]; then
+ $DESTDIR/usr/sbin/enable-rc-once openssh
+fi