summaryrefslogtreecommitdiff
path: root/community-staging/lxdm/lxdm.install
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-15 00:36:27 -0700
committerroot <root@rshg054.dnsready.net>2012-10-15 00:36:27 -0700
commite9dd04abd0ede1143ea4af10059e37c2f599e1fd (patch)
tree349cdcd294bfe80d37acf0f2c9a189c7d3bc6386 /community-staging/lxdm/lxdm.install
parent4eb56e1b3a80c84f2dddf2692310369dc9cbd31a (diff)
Mon Oct 15 00:36:26 PDT 2012
Diffstat (limited to 'community-staging/lxdm/lxdm.install')
-rw-r--r--community-staging/lxdm/lxdm.install26
1 files changed, 10 insertions, 16 deletions
diff --git a/community-staging/lxdm/lxdm.install b/community-staging/lxdm/lxdm.install
index eaf2339cd..4d1285dc5 100644
--- a/community-staging/lxdm/lxdm.install
+++ b/community-staging/lxdm/lxdm.install
@@ -1,24 +1,18 @@
-pkgname=lxdm
-
post_install() {
- if [ -z "`getent group "lxdm" 2> /dev/null`" ]; then
- groupadd lxdm
- chown root:lxdm /etc/lxdm/lxdm.conf
- fi
- chown -R root:lxdm /var/lib/lxdm > /dev/null
- chmod +r /etc/lxdm/lxdm.conf
+ 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
+ post_install $1
}
post_remove() {
- getent group "lxdm" &>/dev/null && groupdel lxdm #1>/dev/null
- return 0
+ if ! getent group lxdm > /dev/null ; then
+ groupdel lxdm
+ fi
}
-
-op=$1
-shift
-
-$op "$@"