diff options
Diffstat (limited to 'debian/ssh.postinst')
-rw-r--r-- | debian/ssh.postinst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/debian/ssh.postinst b/debian/ssh.postinst new file mode 100644 index 000000000..cb1278033 --- /dev/null +++ b/debian/ssh.postinst | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/bin/sh -e | ||
2 | |||
3 | action="$1" | ||
4 | oldversion="$2" | ||
5 | |||
6 | if [ "$action" != configure ]; then | ||
7 | exit 0 | ||
8 | fi | ||
9 | |||
10 | if [ ! -L /usr/share/doc/ssh ] && \ | ||
11 | dpkg --compare-versions "$oldversion" lt-nl 1:4.1p1-5; then | ||
12 | rm -rf /usr/share/doc/ssh | ||
13 | ln -s openssh-client /usr/share/doc/ssh | ||
14 | fi | ||
15 | |||
16 | #DEBHELPER# | ||
17 | |||
18 | exit 0 | ||