mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-14 19:00:27 +00:00
23 lines
483 B
Bash
23 lines
483 B
Bash
#!/bin/sh
|
|
#
|
|
# Debian post-installation script
|
|
# $Id: ngircd.postinst,v 1.1.2.3 2003/07/12 22:57:00 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-
|