diff options
author | root <root@rshg054.dnsready.net> | 2012-10-19 08:15:39 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-19 08:15:39 -0700 |
commit | dcc55a1cfa32068d0759c1c8307f6c07c11aec99 (patch) | |
tree | 2f6cd8ae52f7f49ed4ac2db1b0f4bf88a8ba5d96 /community-testing/lxdm/lxdm.install | |
parent | 9e3985ed7c9851da65023a0ab3d0739cce1858e2 (diff) |
Fri Oct 19 08:15:38 PDT 2012
Diffstat (limited to 'community-testing/lxdm/lxdm.install')
-rw-r--r-- | community-testing/lxdm/lxdm.install | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/community-testing/lxdm/lxdm.install b/community-testing/lxdm/lxdm.install new file mode 100644 index 000000000..4d1285dc5 --- /dev/null +++ b/community-testing/lxdm/lxdm.install @@ -0,0 +1,18 @@ +post_install() { + if ! getent group lxdm > /dev/null ; then + groupadd --system lxdm + chgrp -R lxdm /var/lib/lxdm + chgrp lxdm /etc/lxdm/lxdm.conf + chmod +r /etc/lxdm/lxdm.conf + fi +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + if ! getent group lxdm > /dev/null ; then + groupdel lxdm + fi +} |