summaryrefslogtreecommitdiff
path: root/community/lxdm/lxdm.install
blob: 24edd91a424a55d4b1d502b1144dc07349c0b274 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pkgname=lxdm

post_install() {
    getent group lxdm > /dev/null 2>&1 || groupadd -g 121 lxdm
    getent passwd lxdm > /dev/null 2>&1 || useradd -c 'LXDE Display Manager' -u 121 -g lxdm -d /var/lib/lxdm -s /sbin/nologin lxdm
    passwd -l lxdm > /dev/null
    chown -R lxdm:lxdm /var/lib/lxdm > /dev/null
    chmod +r /etc/lxdm/lxdm.conf
}

post_upgrade() {
    post_install
}

post_remove() {
    getent passwd lxdm > /dev/null 2>&1 && userdel lxdm
    getent group lxdm > /dev/null 2>&1 && groupdel lxdm
}