mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Remove old dbconfig settings from slapd.conf
This commit is contained in:
parent
a5568311db
commit
e5095d0185
2 changed files with 1 additions and 17 deletions
|
@ -30,7 +30,7 @@ backend=$(sudo slapcat -n 0 | sed -n 's/^dn: olcDatabase={1}\(.*\),cn=config$/\1
|
||||||
# Save current database in case of a backend change
|
# Save current database in case of a backend change
|
||||||
BACKEND_CHANGE=0
|
BACKEND_CHANGE=0
|
||||||
BACKUP_DIR="/var/backups/dc=yunohost,dc=org-${backend}-$(date +%s)"
|
BACKUP_DIR="/var/backups/dc=yunohost,dc=org-${backend}-$(date +%s)"
|
||||||
if [[ "$backend" != "mdb" && "$force" == "True" ]]; then
|
if [[ -n "$backend" && "$backend" != "mdb" && "$force" == "True" ]]; then
|
||||||
BACKEND_CHANGE=1
|
BACKEND_CHANGE=1
|
||||||
sudo mkdir -p "$BACKUP_DIR"
|
sudo mkdir -p "$BACKUP_DIR"
|
||||||
sudo slapcat -b dc=yunohost,dc=org \
|
sudo slapcat -b dc=yunohost,dc=org \
|
||||||
|
|
|
@ -62,22 +62,6 @@ suffix "dc=yunohost,dc=org"
|
||||||
# Where the database file are physically stored for database #1
|
# Where the database file are physically stored for database #1
|
||||||
directory "/var/lib/ldap"
|
directory "/var/lib/ldap"
|
||||||
|
|
||||||
# The dbconfig settings are used to generate a DB_CONFIG file the first
|
|
||||||
# time slapd starts. They do NOT override existing an existing DB_CONFIG
|
|
||||||
# file. You should therefore change these settings in DB_CONFIG directly
|
|
||||||
# or remove DB_CONFIG and restart slapd for changes to take effect.
|
|
||||||
|
|
||||||
# Sven Hartge reported that he had to set this value incredibly high
|
|
||||||
# to get slapd running at all. See http://bugs.debian.org/303057 for more
|
|
||||||
# information.
|
|
||||||
|
|
||||||
# Number of objects that can be locked at the same time.
|
|
||||||
dbconfig set_lk_max_objects 1500
|
|
||||||
# Number of locks (both requested and granted)
|
|
||||||
dbconfig set_lk_max_locks 1500
|
|
||||||
# Number of lockers
|
|
||||||
dbconfig set_lk_max_lockers 1500
|
|
||||||
|
|
||||||
# Indexing options for database #1
|
# Indexing options for database #1
|
||||||
index objectClass eq
|
index objectClass eq
|
||||||
index uid eq,sub
|
index uid eq,sub
|
||||||
|
|
Loading…
Add table
Reference in a new issue