parent
2ace38858b
commit
a56681c41a
@ -430,6 +430,9 @@ if [ $1 -eq 2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ls *.bdb &>/dev/null; then
|
if ls *.bdb &>/dev/null; then
|
||||||
|
# make sure the database is consistent
|
||||||
|
runuser -m -s /usr/bin/db_recover -- "ldap" -h %{_sharedstatedir}/ldap &>/dev/null
|
||||||
|
|
||||||
# export the database
|
# export the database
|
||||||
if [ -f %{_sysconfdir}/openldap/slapd.conf ]; then
|
if [ -f %{_sysconfdir}/openldap/slapd.conf ]; then
|
||||||
slapcat -f %{_sysconfdir}/openldap/slapd.conf -l upgrade.ldif &>/dev/null
|
slapcat -f %{_sysconfdir}/openldap/slapd.conf -l upgrade.ldif &>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user