Source

iredmail / iRedMail / functions / dovecot1.sh

Diff from to

iRedMail/functions/dovecot1.sh

     user = ${VMAIL_USER_NAME}
 EOF
 
-    if [ X"${BACKEND}" == X"OpenLDAP" ]; then
+    if [ X"${BACKEND}" == X"OPENLDAP" ]; then
         cat >> ${DOVECOT_CONF} <<EOF
     passdb ldap {
         args = ${DOVECOT_LDAP_CONF}
 }
 EOF
 
-        if [ X"${BACKEND}" == X"OpenLDAP" ]; then
+        if [ X"${BACKEND}" == X"OPENLDAP" ]; then
             realtime_quota_db_name="${IREDADMIN_DB_NAME}"
             realtime_quota_db_user="${IREDADMIN_DB_USER}"
             realtime_quota_db_passwd="${IREDADMIN_DB_PASSWD}"
 
         # Create MySQL database ${IREDADMIN_DB_USER} and table 'used_quota'
         # which used to store realtime quota.
-        if [ X"${BACKEND}" == X"OpenLDAP" -a X"${USE_IREDADMIN}" != X"YES" ]; then
+        if [ X"${BACKEND}" == X"OPENLDAP" -a X"${USE_IREDADMIN}" != X"YES" ]; then
             # If iRedAdmin is not used, create database and import table here.
             mysql -h${MYSQL_SERVER} -P${MYSQL_PORT} -u${MYSQL_ROOT_USER} -p"${MYSQL_ROOT_PASSWD}" <<EOF
 # Create databases.
     if [ X"${DOVECOT_VERSION}" == X"1.2" ]; then
         backup_file ${DOVECOT_SHARE_FOLDER_CONF}
 
-        if [ X"${BACKEND}" == X"OpenLDAP" ]; then
+        if [ X"${BACKEND}" == X"OPENLDAP" ]; then
             share_folder_db_name="${IREDADMIN_DB_NAME}"
             share_folder_db_table="share_folder"
             share_folder_db_user="${IREDADMIN_DB_USER}"
 
         # Create MySQL database ${IREDADMIN_DB_USER} and table 'share_folder'
         # which used to store realtime quota.
-        if [ X"${BACKEND}" == X"OpenLDAP" -a X"${USE_IREDADMIN}" != X"YES" ]; then
+        if [ X"${BACKEND}" == X"OPENLDAP" -a X"${USE_IREDADMIN}" != X"YES" ]; then
             # If iRedAdmin is not used, create database and import table here.
             mysql -h${MYSQL_SERVER} -P${MYSQL_PORT} -u${MYSQL_ROOT_USER} -p"${MYSQL_ROOT_PASSWD}" <<EOF
 # Create databases.