summarylogtreecommitdiffstats
path: root/lightdm.install
blob: 0339c65762bce9b4c5bf06f78e316489b4f7236f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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 /var/lib/lightdm -s /usr/bin/nologin lightdm
    passwd -l lightdm > /dev/null
    systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
    chown lightdm:lightdm /var/log/lightdm > /dev/null
}

post_upgrade() {
    post_install
}

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

# vim: ts=2 sw=2 et: