]> git.pld-linux.org Git - packages/openssh.git/commitdiff
- rel 2; generate /etc/ssh/ssh_host_ecdsa_key auto/th/openssh-5_7p1-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 24 Jan 2011 18:16:42 +0000 (18:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    openssh.spec -> 1.347
    opensshd.init -> 1.41

openssh.spec
opensshd.init

index bef1c78cacbbbb0a315327469f7d163c0950a6e1..86bf1ce42b2e6e99ba0ea7feb50079e00d5334ee 100644 (file)
@@ -29,7 +29,7 @@ Summary(ru.UTF-8):    OpenSSH - свободная реализация прото
 Summary(uk.UTF-8):     OpenSSH - вільна реалізація протоколу Secure Shell (SSH)
 Name:          openssh
 Version:       5.7p1
-Release:       1
+Release:       2
 Epoch:         2
 License:       BSD
 Group:         Applications/Networking
index 5a556c27ff30f3b2ab79d1292ac304747334a6ba..d07e499c02415450abfb0dd12b5fba655a7ff2da 100644 (file)
@@ -62,6 +62,11 @@ ssh_gen_keys() {
                chmod 600 /etc/ssh/ssh_host_dsa_key
                [ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_dsa_key
        fi
+       if [ ! -f /etc/ssh/ssh_host_ecdsa_key -o ! -s /etc/ssh/ssh_host_ecdsa_key ]; then
+               /usr/bin/ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' >&2
+               chmod 600 /etc/ssh/ssh_host_ecdsa_key
+               [ -x /sbin/restorecon ] && /sbin/restorecon /etc/ssh/ssh_host_ecdsa_key
+       fi
 }
 
 start() {
This page took 0.04446 seconds and 4 git commands to generate.