Fixed SMTPUSER set for plus

This commit is contained in:
root 2025-01-17 12:57:54 +00:00
parent 43cd9d3917
commit 5ad47e7d4a

View File

@ -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`