mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
sys-cluster/galera: Remove bashism from init script
Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Brian Evans <grknight@gentoo.org>
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user