From 28db18d3846b1de118958c4d9d53bfc067c7c1c7 Mon Sep 17 00:00:00 2001 From: bain Date: Mon, 4 Nov 2024 21:24:04 +0100 Subject: [PATCH] replace dummy nginx reload cmd --- ncc/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ncc/main.py b/ncc/main.py index a38cd3c..aa326a0 100644 --- a/ncc/main.py +++ b/ncc/main.py @@ -158,9 +158,9 @@ def up(dehydrated_only: bool, skip_master_check: bool): if (first_part := target.split("/")[0]) and ( remote := first_part.split(":")[0] ): - ec, stdout = sysaction.run_shell(("ssh", "-T", remote, "echo 1")) + ec, stdout = sysaction.run_shell(("ssh", "-T", remote, "nginx -s reload")) else: - ec, stdout = sysaction.run_shell(("echo", "1")) + ec, stdout = sysaction.run_shell(("nginx", "-s", "reload")) if ec != 0: step.echo(click.style(" E", fg="red"))