From 4c0b7e7eb7384499f4405badc4f7809c6e61d50d Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 15 Sep 2008 23:35:22 +0200 Subject: Grab orgname from /etc/local-ORG/orgname. --- ldap/mkldapdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldap') diff --git a/ldap/mkldapdb b/ldap/mkldapdb index cade398..443ac44 100755 --- a/ldap/mkldapdb +++ b/ldap/mkldapdb @@ -13,8 +13,8 @@ checkpoint="checkpoint 512 30" backend="bdb" backendoptions="# For the Debian package we use 2MB as default but be sure to update this\n# value if you have plenty of RAM\ndbconfig set_cachesize 0 2097152 0\n\n# Sven Hartge reported that he had to set this value incredibly high\n# to get slapd running at all. See http:\/\/bugs.debian.org\/303057\n# for more information.\n\n# Number of objects that can be locked at the same time.\ndbconfig set_lk_max_objects 1500\n# Number of locks (both requested and granted)\ndbconfig set_lk_max_locks 1500\n# Number of lockers\ndbconfig set_lk_max_lockers 1500" -if [ -r /etc/local/org.conf ]; then - . /etc/local/org.conf +if [ -r /etc/local-ORG/orgname ]; then + orgname="$(head -n 1 /etc/local-ORG/orgname)" fi for var in basedn dnsdomain orgname backend; do -- cgit v1.2.3