mirror of
https://git.nolog.cz/NoLog.cz/nginx-configurator.git
synced 2025-01-31 03:43:35 +01:00
replace dummy nginx reload cmd
This commit is contained in:
parent
195326e8ad
commit
28db18d384
1 changed files with 2 additions and 2 deletions
|
@ -158,9 +158,9 @@ def up(dehydrated_only: bool, skip_master_check: bool):
|
||||||
if (first_part := target.split("/")[0]) and (
|
if (first_part := target.split("/")[0]) and (
|
||||||
remote := first_part.split(":")[0]
|
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:
|
else:
|
||||||
ec, stdout = sysaction.run_shell(("echo", "1"))
|
ec, stdout = sysaction.run_shell(("nginx", "-s", "reload"))
|
||||||
|
|
||||||
if ec != 0:
|
if ec != 0:
|
||||||
step.echo(click.style(" E", fg="red"))
|
step.echo(click.style(" E", fg="red"))
|
||||||
|
|
Loading…
Reference in a new issue