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"))