summarylogtreecommitdiffstats
path: root/lightdm.install
blob: c130f4771cccbddbd31cc78116133524fe4e80f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
post_install() {
    if ! getent group lightdm &>/dev/null; then
        groupadd -g 620 lightdm
    fi

    if ! getent passwd lightdm &>/dev/null; then
        useradd -c 'Light Display Manager' -u 620 -g lightdm -d /var/lib/lightdm -s /usr/bin/nologin lightdm
    fi

    passwd -l lightdm > /dev/null

    systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf
}

post_upgrade() {
    post_install
}