From c5401a6d595a595ee16ee6aede55fb016b9cfdfd Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 17 Oct 2012 10:55:23 +0200 Subject: o Proper implementation of start, stop and status. --- .app/lib/app-conf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.app/lib/app-conf') diff --git a/.app/lib/app-conf b/.app/lib/app-conf index 29b74dd..6216d6f 100644 --- a/.app/lib/app-conf +++ b/.app/lib/app-conf @@ -7,9 +7,17 @@ get_conf() { local name=$2 local instance=$3 local key=$4 - local default=$5 + local default= local file=$BASEDIR/$name/$instance/current/etc/app.conf + shift 4 + + if [ $# -gt 0 ] + then + default=$1 + shift + fi + if [ ! -r $file ] then echo "$default" -- cgit v1.2.3