diff options
| author | Alexander Barton <alex@barton.de> | 2003-07-12 23:27:37 +0000 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2003-07-12 23:27:37 +0000 |
| commit | 5eb89619d6834b4949d6cdf8b87fd3674e45bf00 (patch) | |
| tree | 2ba0d2ef918cea9982af5aa2bc1e0b8d569d4bcb /debian/ngircd.postinst | |
| parent | 6e03626eed3a68de359cb80a36ed0ad5332d93fb (diff) | |
| download | ngircd-5eb89619d6834b4949d6cdf8b87fd3674e45bf00.tar.gz ngircd-5eb89619d6834b4949d6cdf8b87fd3674e45bf00.zip | |
Added debian packaging files from branch-0-7-x to HEAD.
Diffstat (limited to 'debian/ngircd.postinst')
| -rw-r--r-- | debian/ngircd.postinst | 22 |
1 files changed, 22 insertions, 0 deletions
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- |