From 3a559f91f2d0a094531eda8e3ec6e1814ba1a7ac Mon Sep 17 00:00:00 2001 From: Monviech <79600909+Monviech@users.noreply.github.com> Date: Fri, 26 Apr 2024 08:50:40 +0200 Subject: [PATCH] Update caddy_control.py (#3944) Forces the reload even if the config in the Caddyfile is unchanged, using an extra command of the rc.d script, forcing certificates in the filesystem to reload. Fixes: {"info","ts":"2024-04-26T06:13:06Z","msg":"config is unchanged"} Otherwise, if the config is unchanged, and the certificates are replaced, the names of the certificates in the Caddyfile stay the same, thus implying the config has been unchanged. --- www/caddy/src/opnsense/scripts/OPNsense/Caddy/caddy_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/caddy/src/opnsense/scripts/OPNsense/Caddy/caddy_control.py b/www/caddy/src/opnsense/scripts/OPNsense/Caddy/caddy_control.py index 6598926dc..c698d8244 100755 --- a/www/caddy/src/opnsense/scripts/OPNsense/Caddy/caddy_control.py +++ b/www/caddy/src/opnsense/scripts/OPNsense/Caddy/caddy_control.py @@ -67,7 +67,7 @@ actions = { "start": "start", "stop": "stop", "restart": "restart", - "reload": "reload", + "reload": "reloadssl", # Forces the reload even if the config in the Caddyfile is unchanged, using an extra command of the rc.d script, forcing certificates in the filesystem to reload. "validate": "validate" # Validate action }