File: ngircd.postinst

package info (click to toggle)
ngircd 0.10.0-2etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 1,728 kB
  • ctags: 1,006
  • sloc: ansic: 12,476; sh: 3,837; makefile: 355
file content (33 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh

# ngircd	Start/stop the Next Generation IRC Server
# Version:	ngircd  0.9.2  14-Dec-2005  
# Autor:	Mario Iseli <admin@marioiseli.com>

set -e

case "$1" in

	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
	;;

esac

#DEBHELPER#

exit 0