1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-14 19:00:27 +00:00
ngircd/debian/ngircd.postinst

23 lines
471 B
Plaintext
Raw Normal View History

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 18:48:17 +00:00
# $Id: ngircd.postinst,v 1.1.2.2 2003/07/12 18:48:17 alex Exp $
2003-07-12 18:29:19 +00:00
#
if [ -f /etc/ngircd/ngircd.conf ]; then
# validate permissions of configuration file
chmod o-a /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-