mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			377 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			377 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| set -e
 | |
| 
 | |
| # allow helper commands given by "docker-compose run"
 | |
| if [ $# -gt 0 ]; then
 | |
| 	exec "$@"
 | |
| 	exit
 | |
| fi
 | |
| 
 | |
| export CADDYPATH="$KOPANO_KWEB_ASSETS_PATH"
 | |
| 
 | |
| # services need to be aware of the machine-id
 | |
| if [ "$AUTOCONFIG" = "yes" ]; then
 | |
| 	dockerize \
 | |
| 		-wait file:///etc/machine-id \
 | |
| 		-wait file:///var/lib/dbus/machine-id
 | |
| fi
 | |
| 
 | |
| exec "$EXE" caddy -conf /etc/kweb.cfg -agree
 |