From f0653cdf247cde5a08c7d55705c4502abd504d55 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Sat, 12 Jul 2003 18:29:19 +0000 Subject: [PATCH] Added Debian post installation script. --- debian/ngircd.postinst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 debian/ngircd.postinst diff --git a/debian/ngircd.postinst b/debian/ngircd.postinst new file mode 100644 index 00000000..3f66f79b --- /dev/null +++ b/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-