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.
This commit is contained in:
Monviech
2024-04-26 08:50:40 +02:00
committed by GitHub
parent 666662ff91
commit 3a559f91f2
@@ -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
}