about summary refs log tree commit diff
path: root/contrib/Debian/ngircd.postinst
blob: f6e3c4f7e23946c166b9556d2e938da4d093c358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh
#
# Debian post-installation script
#

set -e

case "$1" in
	configure)
		if [ -f /etc/ngircd/ngircd.conf ]; then
			# make sure that the configuration file is not
			# world-readable, it contains passwords!
			chmod o= /etc/ngircd/ngircd.conf
			chgrp irc /etc/ngircd/ngircd.conf
		fi
		;;
esac

#DEBHELPER#

# -eof-