[ru] sync with PR 36596

pull/51790/head
dkarczmarski 2025-08-04 15:44:28 +02:00
parent 2f74564371
commit 8bf859eec6
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ spec:
- |
set -ex
# Generate mysql server-id from pod ordinal index.
[[ `hostname` =~ -([0-9]+)$ ]] || exit 1
[[ $HOSTNAME =~ -([0-9]+)$ ]] || exit 1
ordinal=${BASH_REMATCH[1]}
echo [mysqld] > /mnt/conf.d/server-id.cnf
# Add an offset to avoid reserved server-id=0 value.