Source

iredmail / iRedMail / functions / backend.sh

Diff from to

iRedMail/functions/backend.sh

         check_status_before_run ldap_server_config
 
         # Initialize MySQL database server.
+        mysql_generate_defauts_file_root
         check_status_before_run mysql_initialize
     elif [ X"${BACKEND}" == X"MYSQL" ]; then
-        check_status_before_run mysql_initialize
+        ECHO_INFO "Configure MySQL database server."
+        mysql_generate_defauts_file_root
+        if [ X"${USE_LOCAL_MYSQL_SERVER}" == X'YES' ]; then
+            check_status_before_run mysql_initialize
+        fi
         check_status_before_run mysql_import_vmail_users
     elif [ X"${BACKEND}" == X"PGSQL" ]; then
         check_status_before_run pgsql_initialize