From 5eb89619d6834b4949d6cdf8b87fd3674e45bf00 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 12 Jul 2003 23:27:37 +0000 Subject: Added debian packaging files from branch-0-7-x to HEAD. --- debian/ngircd.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/ngircd.postinst (limited to 'debian/ngircd.postinst') diff --git a/debian/ngircd.postinst b/debian/ngircd.postinst new file mode 100644 index 00000000..c92740d6 --- /dev/null +++ b/debian/ngircd.postinst @@ -0,0 +1,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- -- cgit 1.4.1