diff options
Diffstat (limited to 'contrib/redhat')
-rw-r--r-- | contrib/redhat/openssh.spec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/redhat/openssh.spec b/contrib/redhat/openssh.spec index be76c9650..96e972cf1 100644 --- a/contrib/redhat/openssh.spec +++ b/contrib/redhat/openssh.spec | |||
@@ -190,6 +190,9 @@ rm -rf $RPM_BUILD_ROOT | |||
190 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then | 190 | if [ ! -f /etc/ssh/ssh_host_key -o ! -s /etc/ssh/ssh_host_key ]; then |
191 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 | 191 | /usr/bin/ssh-keygen -b 1024 -f /etc/ssh/ssh_host_key -N '' >&2 |
192 | fi | 192 | fi |
193 | if [ ! -f /etc/ssh/ssh_host_dsa_key -o ! -s /etc/ssh/ssh_host_dsa_key ]; then | ||
194 | /usr/bin/ssh-keygen -d -f /etc/ssh/ssh_host_dsa_key -N '' >&2 | ||
195 | fi | ||
193 | if test -r /var/run/sshd.pid | 196 | if test -r /var/run/sshd.pid |
194 | then | 197 | then |
195 | /etc/rc.d/init.d/sshd restart >&2 | 198 | /etc/rc.d/init.d/sshd restart >&2 |