diff options
author | Matthew Thode <prometheanfire@gentoo.org> | 2016-10-10 13:10:38 -0500 |
---|---|---|
committer | Matthew Thode <prometheanfire@gentoo.org> | 2016-10-10 13:10:38 -0500 |
commit | 69e67d2d995c176b6bef8f45c47e8d60202f65be (patch) | |
tree | b9fbc9d69c67b499710f01d6b3108fa0d31ccfaa /dev-python/carbon | |
parent | b276a16f236bb9452d094d44ab180e6d9e9a8fc3 (diff) | |
download | gentoo-69e67d2d995c176b6bef8f45c47e8d60202f65be.tar.gz gentoo-69e67d2d995c176b6bef8f45c47e8d60202f65be.tar.xz |
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.initd2 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev-python/carbon/files/carbon.initd2 b/dev-python/carbon/files/carbon.initd2 index e7f1f1ea2aa..ff1509747ef 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} |