aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap/openldap.pre-install
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-03-06 13:27:22 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-03-06 13:29:07 +0000
commit0e22835ead81ba577b7899f9a0cdf5cb6dc759d2 (patch)
treecf7918a21074f1068c3ca103d690273374a65ac6 /main/openldap/openldap.pre-install
parent1929f4d878029a55b102f0c1d450c46d39a7e734 (diff)
downloadaports-0e22835ead81ba577b7899f9a0cdf5cb6dc759d2.tar.bz2
aports-0e22835ead81ba577b7899f9a0cdf5cb6dc759d2.tar.xz
main/openldap create ldap group before ldap user
fixes #307
Diffstat (limited to 'main/openldap/openldap.pre-install')
-rw-r--r--main/openldap/openldap.pre-install6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/openldap/openldap.pre-install b/main/openldap/openldap.pre-install
index 7ca82b1c26..7de7c0ce33 100644
--- a/main/openldap/openldap.pre-install
+++ b/main/openldap/openldap.pre-install
@@ -1,5 +1,7 @@
#!/bin/sh
-adduser -h /usr/lib/openldap -s /bin/false -S -D ldap 2>/dev/null
-addgroup ldap
+addgroup -S ldap 2>/dev/null
+adduser -h /usr/lib/openldap -s /bin/false -S -D -H -g "OpenLdap User" \
+ -G ldap ldap 2>/dev/null
+
exit 0