diff options
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r-- | debian/openssh-server.postinst | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst index e6fe65ffa..cf30a181c 100644 --- a/debian/openssh-server.postinst +++ b/debian/openssh-server.postinst | |||
@@ -14,6 +14,14 @@ if [ "$action" != configure ] | |||
14 | fi | 14 | fi |
15 | 15 | ||
16 | 16 | ||
17 | fix_doc_symlink() { | ||
18 | if [ ! -L /usr/share/doc/openssh-server ] && \ | ||
19 | dpkg --compare-versions "$oldversion" lt-nl 1:4.1p1-5; then | ||
20 | rm -rf /usr/share/doc/openssh-server | ||
21 | ln -s openssh-client /usr/share/doc/openssh-server | ||
22 | fi | ||
23 | } | ||
24 | |||
17 | check_idea_key() { | 25 | check_idea_key() { |
18 | #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 support |
19 | if [ -f /etc/ssh/ssh_host_key ] ; then | 27 | if [ -f /etc/ssh/ssh_host_key ] ; then |
@@ -302,6 +310,7 @@ setup_init() { | |||
302 | } | 310 | } |
303 | 311 | ||
304 | 312 | ||
313 | fix_doc_symlink | ||
305 | create_sshdconfig | 314 | create_sshdconfig |
306 | check_idea_key | 315 | check_idea_key |
307 | create_keys | 316 | create_keys |