|
|
|
@ -37,7 +37,7 @@ for postfix_file in glob.glob("/conf/**/**.cf", recursive=True):
|
|
|
|
|
|
|
|
|
|
destination = str(p)
|
|
|
|
|
shutil.copyfile(postfix_file, destination)
|
|
|
|
|
os.chmod(destination, 0o600)
|
|
|
|
|
os.chmod(destination, 600)
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/**/**.cf.jinja", recursive=True):
|
|
|
|
|
p = pathlib.Path(postfix_file)
|
|
|
|
@ -49,7 +49,7 @@ for postfix_file in glob.glob("/conf/**/**.cf.jinja", recursive=True):
|
|
|
|
|
destination = str(p)
|
|
|
|
|
destination = destination[0:-6] # Remove .jinja from the output path
|
|
|
|
|
jinja_render_file(postfix_file, os.environ, destination)
|
|
|
|
|
os.chmod(destination, 0x600)
|
|
|
|
|
os.chmod(destination, 600)
|
|
|
|
|
|
|
|
|
|
if os.path.exists("/overrides/postfix.cf"):
|
|
|
|
|
for line in open("/overrides/postfix.cf").read().strip().split("\n"):
|
|
|
|
|