Fix chmod

Signed-off-by: René Jochum <rene@jochum.dev>
master
René Jochum 4 years ago
parent caa6b5b14b
commit 74ed925e75

@ -31,7 +31,7 @@ for postfix_file in glob.glob("/conf/**/**.cf", recursive=True):
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)
if not p.parent.is_dir():
p.parent.mkdir(0o700)
p.parent.mkdir(700)
destination = str(p)
shutil.copyfile(postfix_file, destination)
@ -42,7 +42,7 @@ for postfix_file in glob.glob("/conf/**/**.cf.jinja", recursive=True):
p = p.relative_to(*p.parts[:2])
p = p.joinpath('/etc/postfix', *p.parts)
if not p.parent.is_dir():
p.parent.mkdir(0o700)
p.parent.mkdir(700)
destination = str(p)
destination = destination[0:-6] # Remove .jinja from the output path

Loading…
Cancel
Save