mirror of
https://github.com/thegeneralist01/config.git
synced 2026-12-04 18:56:56 +01:00
archivr: reload nginx without blocking from tailscale-cert-mjr (fixes switch deadlock)
This commit is contained in:
parent
154fb79605
commit
44167c7ef9
1 changed files with 2 additions and 1 deletions
|
|
@ -58,8 +58,9 @@ in
|
|||
${pkgs.coreutils}/bin/chown -R acme:nginx /var/lib/acme/${domain}
|
||||
${pkgs.coreutils}/bin/chmod 0750 /var/lib/acme/${domain}
|
||||
${pkgs.coreutils}/bin/chmod 0640 /var/lib/acme/${domain}/*
|
||||
# --no-block: this unit is ordered before nginx, so a blocking reload would wait on this very job.
|
||||
if ${pkgs.systemd}/bin/systemctl is-active --quiet nginx.service; then
|
||||
${pkgs.systemd}/bin/systemctl reload nginx.service || true
|
||||
${pkgs.systemd}/bin/systemctl --no-block reload nginx.service || true
|
||||
fi
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue