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