diff options
author | root <root@rshg054.dnsready.net> | 2013-03-18 00:04:36 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-03-18 00:04:36 -0700 |
commit | f5da39f098910b7b6f92dfbcc0c4d5d235d4a57d (patch) | |
tree | 1e3b4c067e5d11156332774feabf33163764fd8a /community/lightdm/lightdm.install | |
parent | 993f2994ae292cae095a0282520680c33d92af5b (diff) |
Mon Mar 18 00:04:36 PDT 2013
Diffstat (limited to 'community/lightdm/lightdm.install')
-rwxr-xr-x | community/lightdm/lightdm.install | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/community/lightdm/lightdm.install b/community/lightdm/lightdm.install index 154d93e10..7d9d99a26 100755 --- a/community/lightdm/lightdm.install +++ b/community/lightdm/lightdm.install @@ -1,15 +1,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 /run/lightdm -s /sbin/nologin lightdm - passwd -l lightdm > /dev/null - systemd-tmpfiles --create /usr/lib/tmpfiles.d/lightdm.conf + 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 /sbin/nologin lightdm + passwd -l lightdm > /dev/null + chown -R lightdm:lightdm /var/lib/lightdm > /dev/null + systemd-tmpfiles --create lightdm.conf } post_upgrade() { - post_install + post_install } post_remove() { - getent passwd lightdm > /dev/null 2>&1 && userdel lightdm - getent group lightdm > /dev/null 2>&1 && groupdel lightdm + getent passwd lightdm > /dev/null 2>&1 && userdel lightdm + getent group lightdm > /dev/null 2>&1 && groupdel lightdm } + +# vim: ts=2 sw=2 et: |