From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63213138334 for ; Mon, 18 Nov 2019 19:00:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7A6FAE0824; Mon, 18 Nov 2019 19:00:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 611D4E0824 for ; Mon, 18 Nov 2019 19:00:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0A50534CFFC for ; Mon, 18 Nov 2019 19:00:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5AF03A8 for ; Mon, 18 Nov 2019 19:00:00 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1574103592.9acf8d40e07c401b26eec8f7b04d98bd7d455d48.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/galera/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/galera/files/garb.init X-VCS-Directories: sys-cluster/galera/files/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 9acf8d40e07c401b26eec8f7b04d98bd7d455d48 X-VCS-Branch: master Date: Mon, 18 Nov 2019 19:00:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3ea63e3b-746b-4fb9-b3b1-723eed93dd05 X-Archives-Hash: e75ef9f0287b04daf13c512aa26de552 commit: 9acf8d40e07c401b26eec8f7b04d98bd7d455d48 Author: Brian Evans gentoo org> AuthorDate: Mon Nov 18 18:59:52 2019 +0000 Commit: Brian Evans gentoo org> CommitDate: Mon Nov 18 18:59:52 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9acf8d40 sys-cluster/galera: Remove bashism from init script Package-Manager: Portage-2.3.79, Repoman-2.3.18 Signed-off-by: Brian Evans gentoo.org> 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 5bf57a7a683..6da7a758228 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}"