summaryrefslogtreecommitdiff
path: root/community/inn/inn.install
blob: 35998900d15e4cf8d912dd40fa154cf531603f93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
post_install() {
	grep -e "^news:" /etc/group 2>&- >&- || groupadd -g 13 -r news 2>&- >&-
	grep -e "^news:" /etc/passwd 2>&- >&- || useradd -u 9 -r -m -g news news 2>&- >&-

	/usr/bin/makedbz -i -o 2>&- >&-
	mkdir /var/log/news 2>&- >&-

	chown news:news -R var/spool/news 2>&- >&-
	chown news:news var/log/news 2>&- >&-
	chown news:news -R var/db/inn 2>&- >&-

	echo ""
	echo "->"
	echo "-> If this is a first-time installation, a minimal active file and"
	echo "-> history database have been installed.  Do not forget to update"
	echo "-> your cron entries and configure INN.  See INSTALL for more"
	echo "-> information."
	echo "->"
	echo "-> The default user:group for inn is news:news"
	echo "->"
	echo ""
	systemd-tmpfiles --create inn.conf
}