]> git.pld-linux.org Git - packages/openssh.git/blobdiff - sshd-keygen
- up to 7.4p1
[packages/openssh.git] / sshd-keygen
old mode 100644 (file)
new mode 100755 (executable)
index b31c06b..a090614
@@ -11,7 +11,7 @@ ssh_gen_key() {
 
        /usr/bin/ssh-keygen -t $type -f $keyfile -N '' >&2
        chmod 600 $keyfile
-       [ -x /sbin/restorecon ] && /sbin/restorecon $keyfile
+       [ ! -x /sbin/restorecon ] || /sbin/restorecon $keyfile
 }
 
 # generate new keys with empty passwords if they do not exist
This page took 0.061363 seconds and 4 git commands to generate.