Commits

Zhang Huangbin committed 6bd1447

Store passwords which generated randomly during installation in 'config' file for re-install.

Comments (0)

Files changed (3)

iRedMail/conf/amavisd

 # Database used to store incoming & outgoing email related information.
 export AMAVISD_DB_NAME='amavisd'
 export AMAVISD_DB_USER='amavisd'
-export AMAVISD_DB_PASSWD="$(${RANDOM_STRING})"
 export MYSQL_BACKUP_DATABASES="${MYSQL_BACKUP_DATABASES} ${AMAVISD_DB_NAME}"
 export PGSQL_BACKUP_DATABASES="${PGSQL_BACKUP_DATABASES} ${AMAVISD_DB_NAME}"
 

iRedMail/conf/cluebringer

 # Database.
 export CLUEBRINGER_DB_NAME='cluebringer'
 export CLUEBRINGER_DB_USER='cluebringer'
-export CLUEBRINGER_DB_PASSWD="$(${RANDOM_STRING})"
 
 export CLUEBRINGER_USER='cluebringer'
 export CLUEBRINGER_GROUP='cluebringer'

iRedMail/dialog/optional_components.sh

     echo "export USE_FAIL2BAN='YES'" >>${IREDMAIL_CONFIG_FILE}
 fi
 
+export AMAVISD_DB_PASSWD="$(${RANDOM_STRING})"
+echo "export AMAVISD_DB_PASSWD='${AMAVISD_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}
+
+export CLUEBRINGER_DB_PASSWD="$(${RANDOM_STRING})"
+echo "export CLUEBRINGER_DB_PASSWD='${CLUEBRINGER_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}
+
 export IREDADMIN_DB_PASSWD="$(${RANDOM_STRING})"
+echo "export IREDADMIN_DB_PASSWD='${IREDADMIN_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}
+
 export RCM_DB_PASSWD="$(${RANDOM_STRING})"
-echo "export IREDADMIN_DB_PASSWD='${IREDADMIN_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}
 echo "export RCM_DB_PASSWD='${RCM_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}