aboutsummaryrefslogtreecommitdiffstats
path: root/ldap/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-17 20:38:37 +0100
committerGuilhem Moulin <guilhem.moulin@fripost.org>2013-01-17 20:38:37 +0100
commit6239e3f8a77a32333350d7c744db289ec9e4f6e0 (patch)
tree6bb549c646249073000ff21b410f85cc3974ec5d /ldap/Makefile
parentc6e15e5272a094f37c79c48bb92f8ff9a5e60081 (diff)
Mailbox → User.
Diffstat (limited to 'ldap/Makefile')
-rw-r--r--ldap/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/ldap/Makefile b/ldap/Makefile
index 01f20fd..4dd0faa 100644
--- a/ldap/Makefile
+++ b/ldap/Makefile
@@ -75,11 +75,13 @@ uninstall:
;fi
#
@echo "Making a new configuration directory at \`$(TMPSLAPD)'"
- @mkdir -m0700 "$(TMPSLAPD)" && slapcat -n0 | slapadd -F "$(TMPSLAPD)" -n0 && chown -R 'openldap:openldap' "$(TMPSLAPD)"
+ @mkdir -m 0700 "$(TMPSLAPD)" && slapcat -n0 | slapadd -F "$(TMPSLAPD)" -n0 && chown -R 'openldap:openldap' "$(TMPSLAPD)"
#
@echo "Deleting schema \"cn=$(SCHEMA),cn=config\"" && find "$(TMPSLAPD)/cn=config/cn=schema/" -type f -name "cn={*}$(SCHEMA).ldif" -delete
#
- @echo "Deleting constraints" && find "$(TMPSLAPD)/$(NUM2)/" -type f -name "olcOverlay={*}constraint.ldif" -delete
+ @if test -d "$(TMPSLAPD)/$(NUM2)"; then \
+ @echo "Deleting constraints" && find "$(TMPSLAPD)/$(NUM2)/" -type f -name "olcOverlay={*}constraint.ldif" -delete \
+ ;fi
#
@/etc/init.d/slapd stop
#