|
@@ -1,31 +1,21 @@
|
|
|
-#! /bin/sh
|
|
|
-
|
|
|
-# ngircd Start/stop the Next Generation IRC Server
|
|
|
-# Version: ngircd 0.9.2 14-Dec-2005
|
|
|
-# Autor: Mario Iseli <admin@marioiseli.com>
|
|
|
+#!/bin/sh
|
|
|
+# postinst script for ngircd
|
|
|
+#
|
|
|
+# see: dh_installdeb(1)
|
|
|
|
|
|
set -e
|
|
|
|
|
|
case "$1" in
|
|
|
+configure)
|
|
|
+;;
|
|
|
|
|
|
- configure)
|
|
|
- if [ ! -d "/var/run/ngircd" ]; then
|
|
|
- mkdir /var/run/ngircd
|
|
|
- chown irc:irc /var/run/ngircd
|
|
|
- chmod 770 /var/run/ngircd
|
|
|
- fi
|
|
|
- chown -R irc:irc /etc/ngircd
|
|
|
- chmod 770 /etc/ngircd
|
|
|
- ;;
|
|
|
-
|
|
|
- abort-upgrade|abort-remove|abort-deconfigure)
|
|
|
- ;;
|
|
|
-
|
|
|
- *)
|
|
|
- echo "ERROR: Postinst called with unknown argument!"
|
|
|
- exit 0
|
|
|
- ;;
|
|
|
+abort-upgrade|abort-remove|abort-deconfigure)
|
|
|
+;;
|
|
|
|
|
|
+*)
|
|
|
+ echo "postinst called with unknown argument \`$1'" >&2
|
|
|
+ exit 1
|
|
|
+;;
|
|
|
esac
|
|
|
|
|
|
#DEBHELPER#
|