From 9acf8d40e07c401b26eec8f7b04d98bd7d455d48 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Mon, 18 Nov 2019 13:59:52 -0500 Subject: [PATCH] sys-cluster/galera: Remove bashism from init script Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Brian Evans --- sys-cluster/galera/files/garb.init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-cluster/galera/files/garb.init b/sys-cluster/galera/files/garb.init index 5bf57a7a683e..6da7a7582286 100644 --- a/sys-cluster/galera/files/garb.init +++ b/sys-cluster/galera/files/garb.init @@ -26,7 +26,8 @@ start_pre() { GALERA_PORT=${GALERA_PORT:-4567} - local OPTIONS="-a gcomm://${GALERA_NODES// /,} -g ${GALERA_GROUP}" + local nodes=$(echo "${GALERA_NODES}" | awk '{ gsub(" ", ",") ; print $0 }') + local OPTIONS="-a gcomm://${nodes} -g ${GALERA_GROUP}" [ -n "${GALERA_OPTIONS}" ] && OPTIONS="${OPTIONS} -o ${GALERA_OPTIONS}" [ -n "${LOG_FILE}" ] && OPTIONS="${OPTIONS} -l ${LOG_FILE}" [ -n "${NODE_NAME}" ] && OPTIONS="${OPTIONS} -n ${NODE_NAME}" -- 2.26.2