Add test mgr setup
This commit is contained in:
		
							parent
							
								
									8e7f8c3d46
								
							
						
					
					
						commit
						30ddadd954
					
				
					 14 changed files with 345 additions and 64 deletions
				
			
		
							
								
								
									
										17
									
								
								docker/apache-mgr-foreground
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										17
									
								
								docker/apache-mgr-foreground
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| #!/bin/sh | ||||
| set -eux | ||||
| 
 | ||||
| # Apache gets grumpy about PID files pre-existing | ||||
| rm -f /run/apache2/apache2.pid | ||||
| 
 | ||||
| sed "s/@MYSQL_MGR_USER@/${MYSQL_MGR_USER}/g; s/@MYSQL_MGR_PASSWORD@/${MYSQL_MGR_PASSWORD}/g" \ | ||||
|   /usr/local/etc/mgr-application.ini > /var/www/manager/application/configs/application.ini | ||||
| 
 | ||||
| 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'); | ||||
| EOF | ||||
| 
 | ||||
| apache2ctl start "$@" | ||||
| 
 | ||||
| exec tail -F --follow=name --retry /var/log/apache2/error.log | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue