Fix: Unbound variable leads to crash

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-15 12:48:00 +01:00
parent 53dd372dfd
commit d8ab4398f0
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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="."