dev-python/carbon: remove bashisms in init for bug 589084
authorMatthew Thode <prometheanfire@gentoo.org>
Mon, 10 Oct 2016 18:10:38 +0000 (13:10 -0500)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 10 Oct 2016 18:10:38 +0000 (13:10 -0500)
Package-Manager: portage-2.3.0

dev-python/carbon/files/carbon.initd2

index e7f1f1ea2aacf8774d8ff78a2b44057492ae3108..ff1509747ef1116db0d65597f726fe2a93ebdc9b 100644 (file)
@@ -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}