fix: wcli uses -cfg not --config-file

This commit is contained in:
admin 2026-08-03 11:53:47 +00:00
parent a2a658caaa
commit 2049bcf617

View file

@ -173,8 +173,8 @@ http {{
# Add config-file to wcli
for conf in Path(f"{instance}/etc").glob("*.conf"):
c = conf.read_text()
if "wcli run" in c and "--config-file" not in c:
conf.write_text(c.replace("wcli run", f"wcli run --config-file {instance}/etc/wallarm/node.yaml"))
if "wcli run" in c and "-cfg" not in c:
conf.write_text(c.replace("wcli run", f"wcli run -cfg {instance}/etc/wallarm/node.yaml"))
# Systemd
tmpl = f"""[Unit]