Blame


1 5eb89619 2003-07-12 alex #!/bin/sh
2 5eb89619 2003-07-12 alex #
3 5eb89619 2003-07-12 alex # Debian post-installation script
4 5eb89619 2003-07-12 alex # $Id: ngircd.postinst,v 1.2 2003/07/12 23:27:37 alex Exp $
5 5eb89619 2003-07-12 alex #
6 5eb89619 2003-07-12 alex
7 5eb89619 2003-07-12 alex if [ -f /etc/ngircd/ngircd.conf ]; then
8 5eb89619 2003-07-12 alex # make sure that configuration file is not world readable
9 5eb89619 2003-07-12 alex chmod o= /etc/ngircd/ngircd.conf
10 5eb89619 2003-07-12 alex fi
11 5eb89619 2003-07-12 alex
12 5eb89619 2003-07-12 alex if [ -x "/etc/init.d/ngircd" ]; then
13 5eb89619 2003-07-12 alex # setup init scripts and startup ngircd
14 5eb89619 2003-07-12 alex update-rc.d ngircd defaults >/dev/null
15 5eb89619 2003-07-12 alex if [ -x /usr/sbin/invoke-rc.d ]; then
16 5eb89619 2003-07-12 alex invoke-rc.d ngircd start
17 5eb89619 2003-07-12 alex else
18 5eb89619 2003-07-12 alex /etc/init.d/ngircd start
19 5eb89619 2003-07-12 alex fi
20 5eb89619 2003-07-12 alex fi
21 5eb89619 2003-07-12 alex
22 5eb89619 2003-07-12 alex # -eof-