summaryrefslogtreecommitdiff
path: root/src/local/rz-mux/rz-mux-tool.py
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2015-04-30 21:24:36 +0300
committerLV-426 <lv-426@taproot.org.il>2015-05-01 03:17:30 +0300
commit1831e3b807045e9259c694a713f701555eacb9bc (patch)
treee2e99ad42292317a823e89566687e1a040a8b248 /src/local/rz-mux/rz-mux-tool.py
parent3d102d560c640d546f0281589c3e046c09a2ede0 (diff)
rz-mux-tool.sh: handle dir creation exclusively
Diffstat (limited to 'src/local/rz-mux/rz-mux-tool.py')
-rw-r--r--src/local/rz-mux/rz-mux-tool.py14
1 files changed, 6 insertions, 8 deletions
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))