From 9d9925ec86bb779c60655bbf487d7921f22a36eb Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 19 Mar 2018 06:21:30 +0100 Subject: Include peer-finder and modify to match also IPs in order to support hostNetwork configuration --- .../usr/share/container-scripts/mysql/galera-init/60-galera-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'root-galera/usr/share/container-scripts/mysql/galera-init/60-galera-config.sh') diff --git a/root-galera/usr/share/container-scripts/mysql/galera-init/60-galera-config.sh b/root-galera/usr/share/container-scripts/mysql/galera-init/60-galera-config.sh index 3b9fa31..e6cce5a 100644 --- a/root-galera/usr/share/container-scripts/mysql/galera-init/60-galera-config.sh +++ b/root-galera/usr/share/container-scripts/mysql/galera-init/60-galera-config.sh @@ -1,5 +1,5 @@ if [ -v POD_NAMESPACE ]; then - export MYSQL_GALERA_CLUSTER="$(hostname -f | cut -d'.' -f2)" + [ -v MYSQL_GALERA_CLUSTER ] || export MYSQL_GALERA_CLUSTER="$(hostname -f | cut -d'.' -f2)" log_info 'Processing basic Galera configuration files ...' envsubst < ${CONTAINER_SCRIPTS_PATH}/galera-init/galera.cnf.template > /etc/my.cnf.d/galera.cnf -- cgit v1.2.1