diff options
author | Colin Watson <cjwatson@debian.org> | 2005-07-09 10:47:25 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-07-09 10:47:25 +0000 |
commit | 316983acd1f20d11c03937f17667b83f6c1bba98 (patch) | |
tree | 3efe2b61a7ce0de65da8570523a5cd51cb5fb21c | |
parent | 7793cb45714691c99d2a2f116007cd79549fca87 (diff) |
fix awful formatting in check_idea_key
-rw-r--r-- | debian/openssh-server.postinst | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index cf30a181c..02d01f2d8 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -23,13 +23,14 @@ fix_doc_symlink() { | |||
23 | } | 23 | } |
24 | 24 | ||
25 | check_idea_key() { | 25 | check_idea_key() { |
26 | #check for old host_key files using IDEA, which openssh does not support | 26 | # check for old host_key files using IDEA, which openssh does not |
27 | # support | ||
27 | if [ -f /etc/ssh/ssh_host_key ] ; then | 28 | if [ -f /etc/ssh/ssh_host_key ] ; then |
28 | if ssh-keygen -p -N '' -f /etc/ssh/ssh_host_key 2>&1 | \ | 29 | if ssh-keygen -p -N '' -f /etc/ssh/ssh_host_key 2>&1 | \ |
29 | grep -q 'unknown cipher' 2>/dev/null ; then | 30 | grep -q 'unknown cipher' 2>/dev/null; then |
30 | mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old | 31 | mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old |
31 | mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old | 32 | mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old |
32 | fi | 33 | fi |
33 | fi | 34 | fi |
34 | } | 35 | } |
35 | 36 | ||