Merge remote-tracking branch 'upstream/master' into fix-doc-commands-1
commit
ab33ba2172
@ -1,6 +1,8 @@
|
|||||||
|
{% if ANTIVIRUS == 'clamav' %}
|
||||||
clamav {
|
clamav {
|
||||||
attachments_only = true;
|
attachments_only = true;
|
||||||
symbol = "CLAM_VIRUS";
|
symbol = "CLAM_VIRUS";
|
||||||
type = "clamav";
|
type = "clamav";
|
||||||
servers = "antivirus:3310";
|
servers = "antivirus:3310";
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
@ -1,17 +1,12 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
import jinja2
|
|
||||||
import os
|
import os
|
||||||
import logging as log
|
import logging as log
|
||||||
import sys
|
import sys
|
||||||
|
from mailustart import convert
|
||||||
|
|
||||||
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
log.basicConfig(stream=sys.stderr, level=os.environ.get("LOG_LEVEL", "WARNING"))
|
||||||
|
|
||||||
def convert(src, dst):
|
|
||||||
logger = log.getLogger("convert()")
|
|
||||||
logger.debug("Source: %s, Destination: %s", src, dst)
|
|
||||||
open(dst, "w").write(jinja2.Template(open(src).read()).render(**os.environ))
|
|
||||||
|
|
||||||
convert("/unbound.conf", "/etc/unbound/unbound.conf")
|
convert("/unbound.conf", "/etc/unbound/unbound.conf")
|
||||||
|
|
||||||
os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
|
os.execv("/usr/sbin/unbound", ["-c /etc/unbound/unbound.conf"])
|
||||||
|
Loading…
Reference in New Issue