mirror of
https://github.com/Mailu/Mailu.git
synced 2024-12-16 10:59:53 +02:00
14 lines
451 B
Python
Executable File
14 lines
451 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import logging as log
|
|
import sys
|
|
from socrate import conf, system
|
|
|
|
system.set_env()
|
|
|
|
conf.jinja("/unbound.conf", os.environ, "/etc/unbound/unbound.conf")
|
|
|
|
os.execv("/usr/sbin/unbound", ["unbound", "-c", "/etc/unbound/unbound.conf"])
|
|
print('Unbound has terminated. If the container keeps restarting, check the internet connectivity of other containers using for instance "docker compose exec front ping example.com"')
|