summarylogtreecommitdiffstats
path: root/snort.install
blob: 1bfb39bc09eab50e1be1df1e92c9a945bffd4994 (plain)
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
post_install() {
	getent group snort >/dev/null || groupadd -g 29 snort
	getent passwd snort >/dev/null || useradd -c 'Snort user' -u 29 -g snort -d /var/log/snort -s /bin/false snort
	passwd -l snort &>/dev/null

	[ -f var/log/snort/alert ] || : >var/log/snort/alert
	chown snort.snort var/log/snort/ -R

	cat << _EOF

>>> You have to edit the HOME_NET variable in the /etc/snort/snort.conf file to reflect your local network.
>>> If you do not change it, snort may not work.

_EOF
}

post_upgrade() {
	post_install $1
}

pre_remove() {
	userdel snort &>/dev/null
	groupdel snort &>/dev/null
}

# vim:set ts=2 sw=2 et: