#96 added option to disable certificate check

This commit is contained in:
Roland Gruber 2020-05-28 20:25:39 +02:00
parent 71af42442b
commit 2e61e2dca9
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,9 @@ LAM_LANG=en_US
# LAM configuration master password and password for server profile "lam" # LAM configuration master password and password for server profile "lam"
LAM_PASSWORD=lam LAM_PASSWORD=lam
# deactivate TLS certificate checks, activate for development only
LAM_DISABLE_TLS_CHECK=false
# #
# docker-compose only, LDAP server setup # docker-compose only, LDAP server setup
# #

View File

@ -23,6 +23,11 @@
set -eu # unset variables are errors & non-zero return values exit the whole script set -eu # unset variables are errors & non-zero return values exit the whole script
[ "$DEBUG" ] && set -x [ "$DEBUG" ] && set -x
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
LAM_SKIP_PRECONFIGURE="${LAM_SKIP_PRECONFIGURE:-false}" LAM_SKIP_PRECONFIGURE="${LAM_SKIP_PRECONFIGURE:-false}"
if [ "$LAM_SKIP_PRECONFIGURE" != "true" ]; then if [ "$LAM_SKIP_PRECONFIGURE" != "true" ]; then