Fixed SMTPUSER set for plus
This commit is contained in:
parent
43cd9d3917
commit
5ad47e7d4a
@ -1535,8 +1535,14 @@ get_appvars() {
|
||||
LDAP_DOMAIN_LAST=$(echo "${LDAP_DOMAIN_ARRAY[2]}" | awk -F= '{ print $2 }')
|
||||
fi
|
||||
|
||||
# Set SMTP user based on if fcore exists
|
||||
[[ $(docker exec ldap slapcat | grep fcore) ]] && SMTPUSER="fcore" || SMTPUSER="admin"
|
||||
# Set SMTP user based on if fcore or admin exists
|
||||
if [[ $(docker exec ldap slapcat | grep fcore) ]]; then
|
||||
SMTPUSER="fcore"
|
||||
elif [[ $(docker exec ldap slapcat | grep admin) ]]; then
|
||||
SMTPUSER="admin"
|
||||
else
|
||||
SMTPUSER="fcore"
|
||||
fi
|
||||
}
|
||||
get_appvars_old() {
|
||||
LDAP_SECRET=`cat /federated/apps/ldap/.ldap.secret`
|
||||
|
Loading…
x
Reference in New Issue
Block a user