34c2098366
- 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
10 lines
225 B
Bash
10 lines
225 B
Bash
#!/bin/sh
|
|
|
|
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
|