Use hostname to get domainname (#381)

This commit is contained in:
Thomas VIAL 2016-11-14 19:11:35 +01:00 committed by GitHub
commit fbb76a4da7

View file

@ -104,7 +104,7 @@ if [ "$ENABLE_LDAP" = 1 ]; then
/etc/dovecot/dovecot-ldap.conf.ext
# Add domainname to vhost.
echo $(domainname) >> /tmp/vhost.tmp
echo $(hostname -d) >> /tmp/vhost.tmp
echo "Enabling dovecot LDAP authentification"
sed -i -e '/\!include auth-ldap\.conf\.ext/s/^#//' /etc/dovecot/conf.d/10-auth.conf