Configure mgr and mail containers
This commit configures IMAP to work properly and makes logs of mgr and dovecot available.
This commit is contained in:
		
							parent
							
								
									30ddadd954
								
							
						
					
					
						commit
						af156f24c6
					
				
					 9 changed files with 164 additions and 4 deletions
				
			
		|  | @ -9,9 +9,14 @@ sed "s/@MYSQL_MGR_USER@/${MYSQL_MGR_USER}/g; s/@MYSQL_MGR_PASSWORD@/${MYSQL_MGR_ | |||
| 
 | ||||
| mysql -u "${MYSQL_MGR_USER}" -h db "-p${MYSQL_MGR_PASSWORD}" mgr <<-EOF | ||||
| REPLACE INTO system_user (id, system_role_id, login, user_client_crt_s_dn_i_dn) | ||||
| VALUES (2, 2,'${CLIENT_CERT_EMAIL}','/CN=${CLIENT_CERT_USERNAME}///C=AU/O=CAcert Inc./CN=Class 3 Test CA'); | ||||
| VALUES (1, 2,'${CLIENT_CERT_EMAIL}','CN=${CLIENT_CERT_USERNAME}//CN=Class 3 Test CA,O=CAcert Inc.,C=AU'); | ||||
| 
 | ||||
| UPDATE system_config SET config_value='1' WHERE config_key='log.file.enabled'; | ||||
| UPDATE system_config SET config_value='mail' WHERE config_key='imap.mailhost'; | ||||
| UPDATE system_config SET config_value='catchall' WHERE config_key='imap.username'; | ||||
| UPDATE system_config SET config_value='${CATCHALL_MAILBOX_PASSWORD}' WHERE config_key='imap.password'; | ||||
| EOF | ||||
| 
 | ||||
| apache2ctl start "$@" | ||||
| 
 | ||||
| exec tail -F --follow=name --retry /var/log/apache2/error.log | ||||
| exec tail -F --follow=name --retry /var/log/apache2/error.log /tmp/ca_mgr.log | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue