fix: [zato] restart load-balancer after updating the .pem cert

This commit is contained in:
Boris Gallet
2025-09-02 16:18:38 +02:00
parent 1048cb4ba6
commit 120e4aed17
6 changed files with 31 additions and 1 deletions

BIN
zato/actions/.renew_crt.swp Normal file

Binary file not shown.

View File

@@ -9,3 +9,15 @@ DOMAIN=$(relation:get "$SERVICE_NAME":web-proxy domain)
merge_crt_letsencrypt "$DOMAIN" || exit 1
zato_commands="
cd /opt/zato &&
./restart-load-balancer.sh
"
if ! exec_as_zato_in_container "$zato_commands"; then
printf "Error: failed to execute 'restart-load-balancer' in container '%s'.\n" "$CONTAINER_NAME" >&2
return 1
fi
echo "load balancer restarted"