|
|
|
@ -27,12 +27,12 @@ if "DOVECOT_HOST" not in os.environ:
|
|
|
|
|
|
|
|
|
|
os.mkdir('/etc/postfix/sql')
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf"):
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf", recursive=True):
|
|
|
|
|
destination = os.path.join("/etc/postfix", os.path.basename(postfix_file))
|
|
|
|
|
shutil.copyfile(postfix_file, destination)
|
|
|
|
|
os.chmod(destination, 600)
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf.jinja"):
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf.jinja", recursive=True):
|
|
|
|
|
out_path = os.path.join("/etc/postfix", os.path.basename(postfix_file))
|
|
|
|
|
out_path = out_path[0:-6] # Remove .jinja from the output path
|
|
|
|
|
jinja_render_file(postfix_file, os.environ, out_path)
|
|
|
|
|