aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap
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
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')
-rw-r--r--main/openldap/APKBUILD2
-rw-r--r--main/openldap/openldap.pre-install6
2 files changed, 5 insertions, 3 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index b0cdbbbab5..cc8bb9e99c 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openldap
pkgver=2.4.19
-pkgrel=4
+pkgrel=5
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
license="custom"
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