Initial import
[samba] / debian / swat.postinst
1 #!/bin/sh -e
2
3 action="$1"
4 oldversion="$2"
5
6 # Needed to run the .config script even if we don't use debconf'
7 . /usr/share/debconf/confmodule
8
9 # Set up swat, turned off by default.
10 update-inetd --group OTHER --add \
11  'swat\t\tstream\ttcp\tnowait.400\troot\t/usr/sbin/tcpd\t/usr/sbin/swat'
12
13 # Fix symlinks
14 for dir in manpages Samba3-ByExample Samba3-Developers-Guide Samba3-HOWTO; do
15         if [ ! -L /usr/share/samba/swat/help/$dir ] && \
16            dpkg --compare-versions "$oldversion" lt-nl 3.0.20b-3; then
17                 rm -rf /usr/share/samba/swat/help/$dir
18                 ln -s ../../../doc/samba-doc/htmldocs/$dir /usr/share/samba/swat/help/$dir
19         fi
20 done
21
22 #DEBHELPER#