From e6416a52c32076c7d19b0e5f6740366a814d5f31 Mon Sep 17 00:00:00 2001 From: mia Date: Sun, 1 Sep 2024 19:08:09 -0700 Subject: fix nginx not being restarted properly --- nginx/sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nginx/sync.py') diff --git a/nginx/sync.py b/nginx/sync.py index 8387e99..abd7e18 100644 --- a/nginx/sync.py +++ b/nginx/sync.py @@ -19,5 +19,5 @@ config = Path("nginx/nginx.conf").read_text().replace("%SERVERS%", servers_inden with_written(config, lambda path: scp(path, "callosum:/etc/nginx/nginx.conf")) -if run(p([*ssh_args(), "nginx", "-t"])).returncode == 0: - run_check(p([*ssh_args(), "systemctl", "restart", "nginx"])) +if run(p([*ssh_args("callosum"), "nginx", "-t"])).returncode == 0: + run_check(p([*ssh_args("callosum"), "systemctl", "restart", "nginx"])) -- cgit 1.4.1