mirror of
				https://github.com/optim-enterprises-bv/Mailu.git
				synced 2025-10-31 01:57:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			268 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			268 B
		
	
	
	
		
			Python
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/python3
 | |
| 
 | |
| import jinja2
 | |
| import os
 | |
| 
 | |
| convert = lambda src, dst: open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
 | |
| convert("/unbound.conf", "/etc/unbound/unbound.conf")
 | |
| 
 | |
| os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
 | 
