Accepting request 914000 from home:kukuk:tiu

- sshd-gen-keys-start:
  - only source sysconfig file if it exists.
  - create /etc/ssh if it does not exists.
  Required for image based installation/updates.

OBS-URL: https://build.opensuse.org/request/show/914000
OBS-URL: https://build.opensuse.org/package/show/network/openssh?expand=0&rev=234
This commit is contained in:
Hans Petter Jansson 2021-09-01 18:03:45 +00:00 committed by Git OBS Bridge
parent 76f90815e2
commit 34c2098366
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Aug 19 10:07:10 UTC 2021 - Thorsten Kukuk <kukuk@suse.com>
- sshd-gen-keys-start:
- only source sysconfig file if it exists.
- create /etc/ssh if it does not exists.
Required for image based installation/updates.
-------------------------------------------------------------------
Mon Jul 19 14:51:08 UTC 2021 - Cristian Rodríguez <crrodriguez@opensuse.org>

View File

@ -1,8 +1,9 @@
#!/bin/sh
. /etc/sysconfig/ssh
test -f /etc/sysconfig/ssh && . /etc/sysconfig/ssh
if [ "x$SSHD_AUTO_KEYGEN" != "xno" ]; then
echo "Checking for missing server keys in /etc/ssh"
test -d /etc/ssh || mkdir -p /etc/ssh
ssh-keygen -A
fi