X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=authbind.git;a=blobdiff_plain;f=debian%2Fpostinst;h=cb0712002d4a0b24ef06e591edc150a1d7d77f8d;hp=40eb20eeff068be176fabb47f5aa7731853d59db;hb=1ed937e6dbebc9cbcfde941a5486d903f45e5e3a;hpb=3ef208a026336d54ab371c4e7221ba44ce14ff8b diff --git a/debian/postinst b/debian/postinst index 40eb20e..cb07120 100644 --- a/debian/postinst +++ b/debian/postinst @@ -1,8 +1,9 @@ #!/bin/sh + if [ "$1" = "configure" ]; then - if [ -d /usr/doc -a ! -e /usr/doc/authbind -a -d /usr/share/doc/authbind ]; - then - ln -sf ../share/doc/authbind /usr/doc/authbind - fi + if [ -d /usr/doc -a -h /usr/doc/authbind -a -d /usr/share/doc/authbind ]; then + rm -f /usr/doc/authbind + fi fi +