summaryrefslogtreecommitdiff
path: root/community/lxdm/lxdm.install
blob: eaf2339cd4be3a13838dc26926c4d84b1210fb83 (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
pkgname=lxdm

post_install() {
	if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
		groupadd lxdm
		chown root:lxdm /etc/lxdm/lxdm.conf
	fi
    chown -R root:lxdm /var/lib/lxdm > /dev/null
    chmod +r /etc/lxdm/lxdm.conf
}

post_upgrade() {
    post_install
}

post_remove() {
	getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null
	return 0
}

op=$1
shift

$op "$@"