X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=debian%2Fpostinst;h=8e10e0e8b08f08e59e00046c0daee01c731145fe;hp=ef30f6e3c6c1a9ce464a2340fae75d67f5254036;hb=ed287647cb28ca8334955ac50d1e262d1b28d1da;hpb=6e782fc203ab33307e4a984b26e6aed8f632fff1 diff --git a/debian/postinst b/debian/postinst index ef30f6e..8e10e0e 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,3 +2,10 @@ set -e update-rc.d userv defaults 19 50 /etc/init.d/userv start >/dev/null + +if [ "$1" = "configure" ]; then + if [ -d /usr/doc -a ! -e /usr/doc/userv -a -d /usr/share/doc/userv ]; then + ln -sf ../share/doc/userv /usr/doc/userv + fi +fi +