318b08b519e870cffe9c26a53047734191c70e09
[alioth/cvs.git] / debian / postinst
1 #! /bin/sh
2 # $MirOS: contrib/hosted/tg/deb/cvs/debian/postinst,v 1.2 2010/09/16 21:53:00 tg Exp $
3
4 set -e
5
6 # upgrade case from Debian CVS
7 for x in /etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf; do
8         test -e $x || continue
9         rm -f /etc/cvs.conf /etc/cvs-cron.conf /etc/cvs-pserver.conf
10         test -x /usr/sbin/update-inetd && update-inetd --remove "^cvspserver"
11         break
12 done
13
14 case $1 in
15 configure)
16         addgroup --force-badname --system _cvsadmin
17         ;;
18
19 abort-upgrade|abort-remove|abort-deconfigure)
20         ;;
21
22 *)
23         echo "postinst called with unknown argument '$1'" >&2
24         exit 1
25         ;;
26 esac
27
28 # dh_installdeb will replace this with shell code automatically
29 # generated by other debhelper scripts.
30
31 #DEBHELPER#
32
33 exit 0