summaryrefslogtreecommitdiff
path: root/community/lightdm/lightdm.install
blob: 154d93e10adfe13e8f1e36db0c712f5aac3647cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
post_install() {
    getent group lightdm > /dev/null 2>&1 || groupadd -g 620 lightdm
    getent passwd lightdm > /dev/null 2>&1 || useradd -c 'Light Display Manager' -u 620 -g lightdm -d /run/lightdm -s /sbin/nologin lightdm
    passwd -l lightdm > /dev/null
    systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
}

post_upgrade() {
    post_install
}

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