mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	wait with kopano-server startup until ssl certificates are present
Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
		
							parent
							
								
									b608aa59f5
								
							
						
					
					
						commit
						5d838d2194
					
				| @ -17,8 +17,8 @@ echo "Set ownership" | ts | |||||||
| chown -R kopano:kopano /run /tmp | chown -R kopano:kopano /run /tmp | ||||||
| chown kopano:kopano /kopano/data/ /kopano/data/attachments | chown kopano:kopano /kopano/data/ /kopano/data/attachments | ||||||
| 
 | 
 | ||||||
| echo "Clean old pid files and sockets" | ts | #echo "Clean old pid files and sockets" | ts | ||||||
| rm -f /var/run/kopano/* | #rm -f /var/run/kopano/* | ||||||
| 
 | 
 | ||||||
| # allow helper commands given by "docker-compose run" | # allow helper commands given by "docker-compose run" | ||||||
| if [ $# -gt 0 ] | if [ $# -gt 0 ] | ||||||
| @ -30,6 +30,11 @@ fi | |||||||
| # start regular service | # start regular service | ||||||
| case "$SERVICE_TO_START" in | case "$SERVICE_TO_START" in | ||||||
|     server) |     server) | ||||||
|  | 	# TODO the until loop needs to be extended for the other services and certificates | ||||||
|  | 	until [[ -f $KCCONF_SERVER_SERVER_SSL_KEY_FILE && -f $KCCONF_SERVER_SERVER_SSL_CA_FILE ]]; do | ||||||
|  | 		echo "waiting for $KCCONF_SERVER_SERVER_SSL_KEY_FILE & $KCCONF_SERVER_SERVER_SSL_CA_FILE"| ts | ||||||
|  | 		sleep 5 | ||||||
|  | 	done | ||||||
|         exec /usr/sbin/kopano-server -F |         exec /usr/sbin/kopano-server -F | ||||||
|         ;; |         ;; | ||||||
|     dagent) |     dagent) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user