From 316983acd1f20d11c03937f17667b83f6c1bba98 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 9 Jul 2005 10:47:25 +0000 Subject: fix awful formatting in check_idea_key --- debian/openssh-server.postinst | 11 ++++++----- 1 file 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() { } check_idea_key() { - #check for old host_key files using IDEA, which openssh does not support + # check for old host_key files using IDEA, which openssh does not + # support if [ -f /etc/ssh/ssh_host_key ] ; then if ssh-keygen -p -N '' -f /etc/ssh/ssh_host_key 2>&1 | \ - grep -q 'unknown cipher' 2>/dev/null ; then - mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old - mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old - fi + grep -q 'unknown cipher' 2>/dev/null; then + mv /etc/ssh/ssh_host_key /etc/ssh/ssh_host_key.old + mv /etc/ssh/ssh_host_key.pub /etc/ssh/ssh_host_key.pub.old + fi fi } -- cgit v1.2.3