Additional configuration files.

This commit is contained in:
Antoine Nguyen
2015-10-15 15:37:27 +02:00
parent 5212ee6d0d
commit f49909d7e0
4 changed files with 36 additions and 1 deletions

View File

@@ -115,7 +115,9 @@ class Installer(object):
else:
dstname = ftpl
src = self.get_file_path("{}.tpl".format(ftpl))
dst = os.path.join(self.config_dir, dstname)
dst = dstname
if not dst.startswith("/"):
dst = os.path.join(self.config_dir, dst)
utils.copy_from_template(src, dst, context)
def restart_daemon(self):