fixed
This commit is contained in:
4
index.sh
4
index.sh
@@ -7,7 +7,7 @@ source lib/mo
|
||||
|
||||
if [ ! -f ./ldap.vars ]; then
|
||||
echo "ldap.vars file not found!"
|
||||
echo "Please copy ldap.vars_template to ldap.vars and edit it."
|
||||
echo "Please copy ldap.vars.template to ldap.vars and edit it."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -40,7 +40,7 @@ echo '' > /etc/ldap/ldap.conf
|
||||
echo "BASE $ldap_base" >> /etc/ldap/ldap.conf
|
||||
echo "URI ldap://localhost" >> /etc/ldap/ldap.conf
|
||||
|
||||
temp_populate_ldif=$(mkdir)
|
||||
temp_populate_ldif=$(mktemp)
|
||||
populate_ldif_template="$(cat files/populate.ldif.template)"
|
||||
echo "$populate_ldif_template" | mo > "$temp_populate_ldif"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user