mirror of
https://github.com/luzifer-docker/openldap.git
synced 2024-11-14 04:12:40 +00:00
Fix: Unbound variable leads to crash
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
53dd372dfd
commit
d8ab4398f0
1 changed files with 2 additions and 2 deletions
|
@ -5,8 +5,8 @@ export SLAPD_CONFDIR=/etc/openldap/slapd.d
|
||||||
export SLAPD_DATADIR=/var/lib/openldap/openldap-data
|
export SLAPD_DATADIR=/var/lib/openldap/openldap-data
|
||||||
|
|
||||||
# Hash passwords
|
# Hash passwords
|
||||||
[ -n "${SLAPD_PASSWORD}" ] && export SLAPD_PASSWORD=$(slappasswd -h '{SSHA}' -s "${SLAPD_PASSWORD}" -n)
|
[ -n "${SLAPD_PASSWORD:-}" ] && export SLAPD_PASSWORD=$(slappasswd -h '{SSHA}' -s "${SLAPD_PASSWORD}" -n)
|
||||||
[ -n "${SLAPD_CONFIG_PASSWORD}" ] && export SLAPD_CONFIG_PASSWORD=$(slappasswd -h '{SSHA}' -s "${SLAPD_CONFIG_PASSWORD}" -n)
|
[ -n "${SLAPD_CONFIG_PASSWORD:-}" ] && export SLAPD_CONFIG_PASSWORD=$(slappasswd -h '{SSHA}' -s "${SLAPD_CONFIG_PASSWORD}" -n)
|
||||||
|
|
||||||
# Generate SLAPD_SUFFIX from given domain
|
# Generate SLAPD_SUFFIX from given domain
|
||||||
IFS="."
|
IFS="."
|
||||||
|
|
Loading…
Reference in a new issue