From 69e67d2d995c176b6bef8f45c47e8d60202f65be Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Mon, 10 Oct 2016 13:10:38 -0500 Subject: dev-python/carbon: remove bashisms in init for bug 589084 Package-Manager: portage-2.3.0 --- dev-python/carbon/files/carbon.initd2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev-python') diff --git a/dev-python/carbon/files/carbon.initd2 b/dev-python/carbon/files/carbon.initd2 index e7f1f1ea2aac..ff1509747ef1 100644 --- a/dev-python/carbon/files/carbon.initd2 +++ b/dev-python/carbon/files/carbon.initd2 @@ -5,13 +5,13 @@ export GRAPHITE_CONF_DIR=/etc/carbon export GRAPHITE_STORAGE_DIR=/var/lib/carbon -INSTANCE=${SVCNAME/#*.} -if [ "${INSTANCE}" == "${SVCNAME}" ]; then +INSTANCE=${SVCNAME#*.} +if [ "${INSTANCE}" = "${SVCNAME}" ]; then INSTANCE="a" fi PIDFILE="/var/run/${SVCNAME}.pid" -PROGRAMNAME=${SVCNAME/.*} +PROGRAMNAME=${SVCNAME%%.*} CARBON_CONFIG=${CARBON_CONFIG:-/etc/carbon/carbon.conf} -- cgit v1.2.3-65-gdbad