replace dummy nginx reload cmd

This commit is contained in:
bain 2024-11-04 21:24:04 +01:00
parent 195326e8ad
commit 28db18d384
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

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