summaryrefslogtreecommitdiff
path: root/pcr/lxdm-consolekit/lxdm.install
blob: 2a212a573cb21f0f0dd4701abc387c0b2f0d85c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
post_install() {
  getent group lxdm > /dev/null 2>&1 && \
    groupmod -g 121 lxdm > /dev/null 2>&1 || \
    groupadd -g 121 lxdm
  getent passwd lxdm > /dev/null 2>&1 && \
    usermod -c 'Lightweight X11 Display Manager' -u 121 -g 121 -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \
    useradd -c 'Lightweight X11 Display Manager' -u 121 -g 121 -d /var/lib/lxdm -s /sbin/nologin lxdm
  passwd -l lxdm > /dev/null
}

post_upgrade() {
  post_install
}