Fix typo in _setup_ldap

This commit is contained in:
alinmear 2017-02-18 01:03:35 +01:00
parent a6e857daa6
commit 832f5c1a5c
1 changed files with 2 additions and 3 deletions

View File

@ -538,13 +538,12 @@ function _setup_dovecot_local_user() {
function _setup_ldap() {
notify 'task' 'Setting up Ldap'
declare -A _check_arr
# cp config files if in place
for i in 'users' 'groups' 'aliases'; do
fpath="/tmp/docker-mailserver/postfix-ldap-${i}.cf"
fpath="/tmp/docker-mailserver/ldap-${i}.cf"
if [ -f $fpath ]; then
cp ${fpath} /etc/postfix/ldap-${i}.cf || _check_arr["cp_$fpath"]='1'
cp ${fpath} /etc/postfix/ldap-${i}.cf
fi
done