summaryrefslogtreecommitdiff
path: root/pcr/lxdm-consolekit/lxdm.install
blob: c07e7c6ca149587760f67acb47ff1fcea1aa0110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
post_install() {
  getent passwd lxdm > /dev/null 2>&1 && \
    usermod -L -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm > /dev/null 2>&1 || \
    useradd -rM -c 'Lightweight X11 Display Manager' -d /var/lib/lxdm -s /sbin/nologin lxdm
  mkdir -p /var/lib/lxdm
  chown lxdm:lxdm /var/lib/lxdm
  chmod 700 /var/lib/lxdm
}

post_upgrade() {
  post_install
}