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:
parent
a45be79553
commit
cc0b9a2743
@ -17,14 +17,14 @@ test -r $RRDCACHED_CONFIG || { echo "$RRDCACHED_CONFIG not existing";
|
|||||||
# Read config
|
# Read config
|
||||||
. $RRDCACHED_CONFIG
|
. $RRDCACHED_CONFIG
|
||||||
|
|
||||||
function check_and_create_dir(){
|
check_and_create_dir() {
|
||||||
local DIR=$1
|
local DIR=$1
|
||||||
test -d "$DIR" || mkdir -p "$DIR"
|
test -d "$DIR" || mkdir -p "$DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$RRDCACHED_ADDRESS" in
|
case "$RRDCACHED_ADDRESS" in
|
||||||
^unix:)
|
unix:*)
|
||||||
SOCKETDIR=$(dirname ${RRDCACHED_ADDRESS/unix:/})
|
SOCKETDIR=$(dirname ${RRDCACHED_ADDRESS#unix:})
|
||||||
check_and_create_dir "$SOCKETDIR"
|
check_and_create_dir "$SOCKETDIR"
|
||||||
chgrp $RRDCACHED_GROUP "$SOCKETDIR"
|
chgrp $RRDCACHED_GROUP "$SOCKETDIR"
|
||||||
;;
|
;;
|
||||||
|
@ -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
|
Wed Nov 19 22:59:24 UTC 2014 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user