summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2016-10-10 13:10:38 -0500
committerMatthew Thode <prometheanfire@gentoo.org>2016-10-10 13:10:38 -0500
commit69e67d2d995c176b6bef8f45c47e8d60202f65be (patch)
treeb9fbc9d69c67b499710f01d6b3108fa0d31ccfaa /dev-python/carbon
parentwww-apps/drupal: Bump to releases 7.51 and 8.2.0. (diff)
downloadgentoo-69e67d2d995c176b6bef8f45c47e8d60202f65be.tar.gz
gentoo-69e67d2d995c176b6bef8f45c47e8d60202f65be.tar.bz2
gentoo-69e67d2d995c176b6bef8f45c47e8d60202f65be.zip
dev-python/carbon: remove bashisms in init for bug 589084
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-python/carbon')
-rw-r--r--dev-python/carbon/files/carbon.initd26
1 files changed, 3 insertions, 3 deletions
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}