mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-31 01:57:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			402 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			402 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/python
 | |
| 
 | |
| import os
 | |
| import subprocess
 | |
| 
 | |
| 
 | |
| # Actual startup script
 | |
| if not os.path.exists("/certs/dhparam.pem") and os.environ["TLS_FLAVOR"] != "notls":
 | |
|     os.system("openssl dhparam -out /certs/dhparam.pem 4096")
 | |
| 
 | |
| if os.environ["TLS_FLAVOR"] == "letsencrypt":
 | |
|     subprocess.Popen(["/letsencrypt.py"])
 | |
| 
 | |
| subprocess.call(["/config.py"])
 | |
| os.execv("/usr/sbin/nginx", ["nginx", "-g", "daemon off;"])
 | 
