hostname
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user