From 9f07fad41c1cbbb46918cab142c21a477cbe925c Mon Sep 17 00:00:00 2001 From: Gustavo Date: Mon, 2 Nov 2026 14:20:53 -0300 Subject: [PATCH] wp-init: accept localized redis status (pt_BR prints Conectado) --- docker/wp-init.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/wp-init.sh b/docker/wp-init.sh index 40ba0be..462027b 100755 --- a/docker/wp-init.sh +++ b/docker/wp-init.sh @@ -345,8 +345,9 @@ if [ -n "$REDIS_HOST" ]; then REDIS_STATUS="$(wp_run redis status 2>/dev/null || true)" # The status output may lead with the "Drop-ins: [...]" block, so the checks - # match the key line anywhere in the output. - if printf '%s' "$REDIS_STATUS" | grep -qE '^[[:space:]]*Status:[[:space:]]+Connected'; then + # match the key line anywhere in the output. The Status word follows the + # site locale (pt_BR prints "Conectado"), so both are accepted. + if printf '%s' "$REDIS_STATUS" | grep -qE '^[[:space:]]*Status:[[:space:]]+(Connected|Conectado)'; then log "Redis object cache connected." else warn "Redis object cache could not connect — check the redis service."