commit f0653cdf247cde5a08c7d55705c4502abd504d55 from: Alexander Barton date: Sat Jul 12 18:29:19 2003 UTC Added Debian post installation script. commit - 0b95570a801af0b7d4726b98ca1796fd06cf1543 commit + f0653cdf247cde5a08c7d55705c4502abd504d55 blob - /dev/null blob + 3f66f79b316a3d44f57eeb43aedd459a75c38c51 (mode 644) --- /dev/null +++ debian/ngircd.postinst @@ -0,0 +1,22 @@ +# +# Debian post-installation script +# +# $Id: ngircd.postinst,v 1.1.2.1 2003/07/12 18:29:19 alex Exp $ +# + +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-