mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-14 19:00:27 +00:00
Added Debian post installation script.
This commit is contained in:
parent
0b95570a80
commit
f0653cdf24
22
debian/ngircd.postinst
vendored
Normal file
22
debian/ngircd.postinst
vendored
Normal file
@ -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-
|
Loading…
Reference in New Issue
Block a user