Author: glen                         Date: Sun Feb 20 10:29:57 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- generate key in checkconfig, so upstart would get new ssh_host_ecdsa_key key 
on restart

---- Files affected:
packages/openssh:
   opensshd.init (1.46 -> 1.47) 

---- Diffs:

================================================================
Index: packages/openssh/opensshd.init
diff -u packages/openssh/opensshd.init:1.46 packages/openssh/opensshd.init:1.47
--- packages/openssh/opensshd.init:1.46 Sat Feb 19 17:06:03 2011
+++ packages/openssh/opensshd.init      Sun Feb 20 11:29:52 2011
@@ -40,6 +40,7 @@
 }
 
 checkconfig() {
+       ssh_gen_keys
        /usr/sbin/sshd -t || exit 1
 }
 
@@ -74,7 +75,6 @@
                return
        fi
 
-       ssh_gen_keys
        checkconfig
 
        if [ ! -s /etc/ssh/ssh_host_key ]; then
@@ -118,7 +118,6 @@
                return
        fi
 
-       ssh_gen_keys
        checkconfig
        msg_reloading "OpenSSH"
        killproc sshd -HUP
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/openssh/opensshd.init?r1=1.46&r2=1.47&f=u

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to