|
|
|
@ -30,7 +30,7 @@ if not os.path.exists('/etc/postfix/sql'):
|
|
|
|
|
os.mkdir('/etc/postfix/sql')
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf", recursive=True):
|
|
|
|
|
p = path.Path(postfix_file)
|
|
|
|
|
p = pathlib.Path(postfix_file)
|
|
|
|
|
p = p.relative_to(*p.parts[:2])
|
|
|
|
|
p = p.joinpath('/etc/postfix', *p.parts)
|
|
|
|
|
if not p.parent.isdir():
|
|
|
|
@ -41,7 +41,7 @@ for postfix_file in glob.glob("/conf/*.cf", recursive=True):
|
|
|
|
|
os.chmod(destination, 600)
|
|
|
|
|
|
|
|
|
|
for postfix_file in glob.glob("/conf/*.cf.jinja", recursive=True):
|
|
|
|
|
p = path.Path(postfix_file)
|
|
|
|
|
p = pathlib.Path(postfix_file)
|
|
|
|
|
p = p.relative_to(*p.parts[:2])
|
|
|
|
|
p = p.joinpath('/etc/postfix', *p.parts)
|
|
|
|
|
if not p.parent.isdir():
|
|
|
|
|