2003-07-12 18:48:17 +00:00
|
|
|
#!/bin/sh
|
2003-07-12 18:29:19 +00:00
|
|
|
#
|
|
|
|
# Debian post-installation script
|
2003-07-12 22:57:00 +00:00
|
|
|
# $Id: ngircd.postinst,v 1.1.2.3 2003/07/12 22:57:00 alex Exp $
|
2003-07-12 18:29:19 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
if [ -f /etc/ngircd/ngircd.conf ]; then
|
2003-07-12 22:57:00 +00:00
|
|
|
# make sure that configuration file is not world readable
|
|
|
|
chmod o= /etc/ngircd/ngircd.conf
|
2003-07-12 18:29:19 +00:00
|
|
|
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-
|