summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst9
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 ]
14fi 14fi
15 15
16 16
17fix_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
17check_idea_key() { 25check_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
313fix_doc_symlink
305create_sshdconfig 314create_sshdconfig
306check_idea_key 315check_idea_key
307create_keys 316create_keys