diff options
Diffstat (limited to 'sys-cluster/galera/files')
-rw-r--r-- | sys-cluster/galera/files/garb.init | 3 |
1 files changed, 2 insertions, 1 deletions
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}" |