Fix glob.glob, pt100000

Signed-off-by: René Jochum <rene@jochum.dev>
master
René Jochum 4 years ago
parent 48b1310f15
commit 65f68ac3c9

@ -26,7 +26,7 @@ if "MESSAGE_SIZE_LIMIT" not in os.environ:
if "DOVECOT_HOST" not in os.environ:
os.environ['DOVECOT_HOST'] = 'dovecot'
for postfix_file in glob.glob("/conf/*.cf", recursive=True):
for postfix_file in glob.glob("/conf/**/**.cf", recursive=True):
p = pathlib.Path(postfix_file)
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)
@ -37,7 +37,7 @@ for postfix_file in glob.glob("/conf/*.cf", recursive=True):
shutil.copyfile(postfix_file, destination)
os.chmod(destination, 600)
for postfix_file in glob.glob("/conf/*.cf.jinja", recursive=True):
for postfix_file in glob.glob("/conf/**/**.cf.jinja", recursive=True):
p = pathlib.Path(postfix_file)
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)

Loading…
Cancel
Save