diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-10-26 22:27:31 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2017-10-26 22:27:31 -0500 |
commit | 6e81e5cc6dea214e15404c7753a2c1fa2dbaf28f (patch) | |
tree | 9ce0aae923e6a1518c6ad1ad10cb42a5de6131e8 /pcr/lxdm-consolekit/lxdm.install | |
parent | f12fd6127261b32cefa85c88b1d71262ef9917e6 (diff) | |
download | abslibre-6e81e5cc6dea214e15404c7753a2c1fa2dbaf28f.tar.gz abslibre-6e81e5cc6dea214e15404c7753a2c1fa2dbaf28f.tar.bz2 abslibre-6e81e5cc6dea214e15404c7753a2c1fa2dbaf28f.zip |
lxdm-consolekit-0.5.3-4: rebuild
Diffstat (limited to 'pcr/lxdm-consolekit/lxdm.install')
-rw-r--r-- | pcr/lxdm-consolekit/lxdm.install | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/pcr/lxdm-consolekit/lxdm.install b/pcr/lxdm-consolekit/lxdm.install index 2a212a573..c07e7c6ca 100644 --- a/pcr/lxdm-consolekit/lxdm.install +++ b/pcr/lxdm-consolekit/lxdm.install @@ -1,11 +1,10 @@ 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 + 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() { |