about summary refs log tree commit diff
path: root/debian/ngircd.postinst
blob: c92740d616d409d63b2f2f0452ded88956f81cf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
#
# Debian post-installation script
# $Id: ngircd.postinst,v 1.2 2003/07/12 23:27:37 alex Exp $
#

if [ -f /etc/ngircd/ngircd.conf ]; then
	# make sure that configuration file is not world readable
	chmod o= /etc/ngircd/ngircd.conf
fi

if [ -x "/etc/init.d/ngircd" ]; then
	# setup init scripts and startup ngircd
	update-rc.d ngircd defaults >/dev/null
	if [ -x /usr/sbin/invoke-rc.d ]; then
		invoke-rc.d ngircd start
	else
		/etc/init.d/ngircd start
	fi
fi

# -eof-