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 --- misc/certs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/certs.py b/misc/certs.py index 889ef33..2b3e9a1 100644 --- a/misc/certs.py +++ b/misc/certs.py @@ -3,7 +3,7 @@ from tarfile import TarFile from commia.bearer import get_key, keys from commia.prelude import * -from commia.ssh import scp +from commia.ssh import scp, ssh_args from commia.util import with_written buffer = get_key(keys.certificates.certs, decode=False) @@ -13,3 +13,5 @@ for name in tar.getnames(): tar.extractfile(name).read(), lambda path: scp(path, f"callosum:/etc/tls/{name}"), ) + +run_check(p([*ssh_args("callosum"), "systemctl", "restart", "nginx"])) -- cgit 1.4.1