mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Slapd.d directory was empty after restore
This commit is contained in:
parent
b70cff29f7
commit
b2a2a05598
1 changed files with 2 additions and 1 deletions
|
@ -23,7 +23,8 @@ else
|
||||||
|
|
||||||
# Regenerate the configuration
|
# Regenerate the configuration
|
||||||
rm -rf /etc/ldap/slapd.d/*
|
rm -rf /etc/ldap/slapd.d/*
|
||||||
slaptest -u -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d
|
slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d
|
||||||
|
chown -R openldap:openldap /etc/ldap/slapd.d
|
||||||
cp -rfp /var/lib/ldap.old/DB_CONFIG /var/lib/ldap
|
cp -rfp /var/lib/ldap.old/DB_CONFIG /var/lib/ldap
|
||||||
|
|
||||||
# Import the database
|
# Import the database
|
||||||
|
|
Loading…
Add table
Reference in a new issue