This commit is contained in:
2026-06-26 10:23:11 +02:00
parent be663abec9
commit 8f607f5528

View File

@@ -82,7 +82,7 @@ spec:
set -ex
echo 'Starting init-mariadb'
ls /mnt/config-map
[[ $(hostname) =~ -([0-9]+)$ ]] || exit 1
[[ $HOSTNAME =~ -([0-9]+)$ ]] || exit 1
ordinal=${BASH_REMATCH[1]}
if [[ $ordinal -eq 0 ]]; then
cp /mnt/config-map/primary.cnf /etc/my.cnf.d/server-id.cnf