summarylogtreecommitdiffstats
path: root/xtheme.install
blob: 00215aa925341fcc80da513d50a90488311ce800 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
create_user() {
	getent group xtheme &>/dev/null \
		|| groupadd -g 142 xtheme
	
	getent passwd xtheme &>/dev/null \
		|| useradd  xtheme -u 142 -g 142 \
			-d /var/lib/xtheme -s /bin/false
}

post_install() {
	create_user
}

post_upgrade() {
	create_user
}

post_remove() {
	getent passwd xtheme &>/dev/null && userdel xtheme
}