fix: wcli uses -cfg not --config-file
This commit is contained in:
parent
a2a658caaa
commit
2049bcf617
1 changed files with 2 additions and 2 deletions
|
|
@ -173,8 +173,8 @@ http {{
|
||||||
# Add config-file to wcli
|
# Add config-file to wcli
|
||||||
for conf in Path(f"{instance}/etc").glob("*.conf"):
|
for conf in Path(f"{instance}/etc").glob("*.conf"):
|
||||||
c = conf.read_text()
|
c = conf.read_text()
|
||||||
if "wcli run" in c and "--config-file" not in c:
|
if "wcli run" in c and "-cfg" not in c:
|
||||||
conf.write_text(c.replace("wcli run", f"wcli run --config-file {instance}/etc/wallarm/node.yaml"))
|
conf.write_text(c.replace("wcli run", f"wcli run -cfg {instance}/etc/wallarm/node.yaml"))
|
||||||
|
|
||||||
# Systemd
|
# Systemd
|
||||||
tmpl = f"""[Unit]
|
tmpl = f"""[Unit]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue