summarylogtreecommitdiffstats
path: root/cvechecker.install
blob: 2b044e3f4d0bdbfb31dc0a56675e105023d8bebd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pre_install() {
	groupadd cvechecker &>/dev/null
	useradd cvechecker -d /var/cvechecker -g cvechecker &>/dev/null
}

post_install() {
	mkdir -p /var/cvechecker &>/dev/null
	chgrp -R cvechecker /var/cvechecker/* &>/dev/null
	echo "umask 007" >> /var/cvechecker/.profile
}

post_remove() {
	groupdel cvechecker &>/dev/null
	userdel cvechecker &>/dev/null
}