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

View File

@@ -32,7 +32,7 @@ get_container_name(){
exec_as_zato_in_container() {
CONTAINER_NAME=$(get_container_name)
local cmd="$1"
if ! docker exec -it "$CONTAINER_NAME" bash -c "su - zato -c '$cmd'"; then
if ! docker exec -i "$CONTAINER_NAME" bash -c "su - zato -c '$cmd'"; then
printf "Error: Failed to execute command '%s' as zato user in container '%s'\n" "$cmd" "$CONTAINER_NAME" >&2
return 1
fi