summaryrefslogtreecommitdiff
path: root/community-testing/lxdm/lxdm.install
diff options
context:
space:
mode:
Diffstat (limited to 'community-testing/lxdm/lxdm.install')
-rw-r--r--community-testing/lxdm/lxdm.install18
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
+}