Commits

Zhang Huangbin committed 8febd79

Code cleanup.

  • Participants
  • Parent commits 8ae65ae

Comments (0)

Files changed (3)

File iRedMail/conf/core

 }
 
 # Create SSL certs/private files.
-gen_pem_key()
+generate_ssl_keys()
 {
     ECHO_INFO "Create SSL certification files."
 
 
 EOF
 
-    echo 'export status_gen_pem_key="DONE"' >> ${STATUS_FILE}
+    echo 'export status_generate_ssl_keys="DONE"' >> ${STATUS_FILE}
 }
 
 # Add alias entry in Postfix /etc/postfix/aliases.

File iRedMail/iRedMail.sh

 
 
 # Create SSL/TLS cert file.
-check_status_before_run gen_pem_key
+check_status_before_run generate_ssl_keys
 
 # User/Group: vmail
 check_status_before_run add_required_users

File iRedMail/tools/generate_ssl_keys.sh

 export SSL_KEY_FILE="${ROOTDIR}/private/iRedMail.key"
 
 # Create SSL certs/private files.
-gen_pem_key()
+generate_ssl_keys()
 {
     # Create necessary directories.
     mkdir -p {certs,private} 2>/dev/null
     chmod 0444 ${SSL_KEY_FILE}
 }
 
-gen_pem_key && cat <<EOF
+generate_ssl_keys && cat <<EOF
 SSL keys were generated:
     - ${SSL_CERT_FILE}
     - ${SSL_KEY_FILE}