From cc0b9a2743769f469e49a00d42f9bbeeea38a154f0c1fcf75f2b20642c0f0ee3 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Sun, 23 Nov 2014 12:41:04 +0000 Subject: [PATCH] Accepting request 262741 from home:Ledest:bashisms fix bashisms in rrdcached-systemd-pre script OBS-URL: https://build.opensuse.org/request/show/262741 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/rrdtool?expand=0&rev=58 --- rrdcached-systemd-pre | 6 +++--- rrdtool.changes | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/rrdcached-systemd-pre b/rrdcached-systemd-pre index f7a56a5..d1c20f9 100644 --- a/rrdcached-systemd-pre +++ b/rrdcached-systemd-pre @@ -17,14 +17,14 @@ test -r $RRDCACHED_CONFIG || { echo "$RRDCACHED_CONFIG not existing"; # Read config . $RRDCACHED_CONFIG -function check_and_create_dir(){ +check_and_create_dir() { local DIR=$1 test -d "$DIR" || mkdir -p "$DIR" } case "$RRDCACHED_ADDRESS" in - ^unix:) - SOCKETDIR=$(dirname ${RRDCACHED_ADDRESS/unix:/}) + unix:*) + SOCKETDIR=$(dirname ${RRDCACHED_ADDRESS#unix:}) check_and_create_dir "$SOCKETDIR" chgrp $RRDCACHED_GROUP "$SOCKETDIR" ;; diff --git a/rrdtool.changes b/rrdtool.changes index ad3140c..e2d1ac9 100644 --- a/rrdtool.changes +++ b/rrdtool.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Nov 23 06:16:00 UTC 2014 - Led + +- fix bashisms in rrdcached-systemd-pre script + ------------------------------------------------------------------- Wed Nov 19 22:59:24 UTC 2014 - dimstar@opensuse.org