From: Brian Evans Date: Mon, 18 Nov 2019 18:59:52 +0000 (-0500) Subject: sys-cluster/galera: Remove bashism from init script X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9acf8d40e07c401b26eec8f7b04d98bd7d455d48;p=gentoo.git sys-cluster/galera: Remove bashism from init script Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Brian Evans --- 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}"