X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=debian%2Fidzebra-2.0-utils.postinst;h=06378fbea346ae5cf2d1719816c2f6a3a8a39737;hb=a05fd4d93f41fc3e6fe5d0cc8bd8f9d7a6410cb5;hp=95e2be80acd3351536226cc05b6d2af466be229b;hpb=d3171bed6fd79937cb996f95b363a34677170bc6;p=idzebra-moved-to-github.git diff --git a/debian/idzebra-2.0-utils.postinst b/debian/idzebra-2.0-utils.postinst index 95e2be8..06378fb 100644 --- a/debian/idzebra-2.0-utils.postinst +++ b/debian/idzebra-2.0-utils.postinst @@ -11,6 +11,16 @@ update-alternatives --quiet --install /usr/bin/zebraidx zebraidx \ update-alternatives --quiet --install /usr/bin/zebrasrv zebrasrv \ /usr/bin/zebrasrv-2.0 50 \ - --slave /usr/share/man/man1/zebrasrv.8.gz zebrasrv.8.gz \ - /usr/share/man/man1/zebrasrv-2.0.8.gz + --slave /usr/share/man/man8/zebrasrv.8.gz zebrasrv.8.gz \ + /usr/share/man/man8/zebrasrv-2.0.8.gz + +if [ -x "/etc/init.d/zebrasrv" ]; then + update-rc.d zebrasrv defaults >/dev/null + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d zebrasrv start || exit $? + else + /etc/init.d/zebrasrv start || exit $? + fi +fi +