🗝
summary refs log tree commit diff
path: root/nginx/sync.py
diff options
context:
space:
mode:
authormia <mia@mia.jetzt>2024-09-01 19:08:09 -0700
committermia <mia@mia.jetzt>2024-09-01 19:08:09 -0700
commite6416a52c32076c7d19b0e5f6740366a814d5f31 (patch)
tree7146c8fad55cbec4d48b85b8d7a6541117ee45a7 /nginx/sync.py
parent66a6fcd862cbb4b4505fab2bcd1d0b6a4ae06535 (diff)
downloadcallosum-e6416a52c32076c7d19b0e5f6740366a814d5f31.tar.gz
callosum-e6416a52c32076c7d19b0e5f6740366a814d5f31.zip
fix nginx not being restarted properly
Diffstat (limited to 'nginx/sync.py')
-rw-r--r--nginx/sync.py4
1 files changed, 2 insertions, 2 deletions
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"]))