]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Added Debian post installation script.
authorAlexander Barton <alex@barton.de>
Sat, 12 Jul 2003 18:29:19 +0000 (18:29 +0000)
committerAlexander Barton <alex@barton.de>
Sat, 12 Jul 2003 18:29:19 +0000 (18:29 +0000)
debian/ngircd.postinst [new file with mode: 0644]

diff --git a/debian/ngircd.postinst b/debian/ngircd.postinst
new file mode 100644 (file)
index 0000000..3f66f79
--- /dev/null
@@ -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-