mirror of
https://github.com/Mailu/Mailu.git
synced 2025-06-04 23:27:34 +02:00
copy (and not parse) mta sts override config
This commit is contained in:
parent
b02ceab72f
commit
05c79b0e3c
@ -76,9 +76,9 @@ for map_file in glob.glob("/overrides/*.map"):
|
|||||||
os.remove(destination)
|
os.remove(destination)
|
||||||
|
|
||||||
if os.path.exists("/overrides/mta-sts-daemon.yml"):
|
if os.path.exists("/overrides/mta-sts-daemon.yml"):
|
||||||
conf.jinja("/overrides/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
|
shutil.copyfile("/overrides/mta-sts-daemon.yml", "/etc/mta-sts-daemon.yml")
|
||||||
else:
|
else:
|
||||||
conf.jinja("/conf/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
|
conf.jinja("/conf/mta-sts-daemon.yml", os.environ, "/etc/mta-sts-daemon.yml")
|
||||||
|
|
||||||
if not os.path.exists("/etc/postfix/tls_policy.map.lmdb"):
|
if not os.path.exists("/etc/postfix/tls_policy.map.lmdb"):
|
||||||
open("/etc/postfix/tls_policy.map", "a").close()
|
open("/etc/postfix/tls_policy.map", "a").close()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user