Add the domainname from container to vhost

This commit is contained in:
Dennis Stumm 2016-11-11 12:53:07 +01:00
parent 0cf8895d36
commit eab0efb4d4
1 changed files with 2 additions and 3 deletions

View File

@ -103,9 +103,8 @@ if [ "$ENABLE_LDAP" = 1 ]; then
-e 's|^dnpass\s*=.*|dnpass = '${LDAP_BIND_PW:="admin"}'|g' \
/etc/dovecot/dovecot-ldap.conf.ext
# Add base domain to vhost
# TODO get domain from LDAP_SEARCH_BASE like dc=foo,dc=bar ==> foo.bar
#echo ${domain} >> /tmp/vhost.tmp
# Add domainname to vhost.
echo $(domainname) >> /tmp/vhost.tmp
echo "Enabling dovecot LDAP authentification"
sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf