Commit f85e688c authored by Ad Schellevis's avatar Ad Schellevis

(configd, templates) copy parents permissions

parent fb91e313
......@@ -36,6 +36,7 @@ import traceback
import copy
import codecs
import jinja2
import shutil
import addons.template_helpers
__author__ = 'Ad Schellevis'
......@@ -280,6 +281,8 @@ class Template(object):
if last_bytes_template in ('\n', '\r'):
f_out.write('\n')
f_out.close()
# copy parents file permissions
shutil.copymode(os.path.dirname(filename), filename)
result.append(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment