fixed unbound variable

This commit is contained in:
Roland Gruber 2020-07-19 13:08:33 +02:00
parent ffb3ed9357
commit 9394eeeabd
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
set -eu # unset variables are errors & non-zero return values exit the whole script
[ "$DEBUG" ] && set -x
if [ "$LAM_DISABLE_TLS_CHECK" == "true" ]; then
if [ "${LAM_DISABLE_TLS_CHECK:-}" == "true" ]; then
ln -s /etc/ldap/ldap.conf /etc/ldap.conf
echo "TLS_REQCERT never" >> /etc/ldap/ldap.conf
fi