diff options
Diffstat (limited to '.app/lib/app-conf')
-rw-r--r-- | .app/lib/app-conf | 10 |
1 files changed, 9 insertions, 1 deletions
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" |