From 1831e3b807045e9259c694a713f701555eacb9bc Mon Sep 17 00:00:00 2001 From: LV-426 Date: Thu, 30 Apr 2015 21:24:36 +0300 Subject: rz-mux-tool.sh: handle dir creation exclusively --- src/local/rz-mux/rz-mux-tool.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/local/rz-mux/rz-mux-tool.py') diff --git a/src/local/rz-mux/rz-mux-tool.py b/src/local/rz-mux/rz-mux-tool.py index 590d53c4..253475bb 100644 --- a/src/local/rz-mux/rz-mux-tool.py +++ b/src/local/rz-mux/rz-mux-tool.py @@ -1,8 +1,11 @@ """ Multiplexed-Rhizi instance configuration generator: - - setup Apache instance configuration - - setup Neo4J instance, instance configuration - - setup Rhizi instance configuration + - generate Apache instance configuration files + - generate Neo4J instance, instance configuration files + - generate Rhizi instance configuration files + + This tool currently does not handle module confdir/rootdir creation, file mode/ownership creation, + which are handled by the .sh accompanying shell script. """ import argparse from jinja2 import Environment, FileSystemLoader @@ -22,11 +25,6 @@ class Template_Task(): def do_exec(self): - dst_dir = os.path.dirname(self.dst_path) - if not os.path.exists(dst_dir): - print('rz-mux-tool: warning: target dir missing, installing: %s, please adjust usr/grp' % (dst_dir)) - os.makedirs(dst_dir) - with open(self.dst_path, 'w') as f_out: f_out.write(self.jinja_tmpl.render(**self.kv_set)) -- cgit v1.3.1