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
This commit is contained in:
Denisart Benjamin 2014-11-23 12:41:04 +00:00 committed by Git OBS Bridge
parent a45be79553
commit cc0b9a2743
2 changed files with 8 additions and 3 deletions

View File

@ -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"
;;

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sun Nov 23 06:16:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashisms in rrdcached-systemd-pre script
-------------------------------------------------------------------
Wed Nov 19 22:59:24 UTC 2014 - dimstar@opensuse.org