aboutsummaryrefslogtreecommitdiff
path: root/.app/lib/app-conf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-17 10:55:23 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-17 10:55:23 +0200
commitc5401a6d595a595ee16ee6aede55fb016b9cfdfd (patch)
tree93d9bb33837bc1cea44ba4ca3c8ce9f8882ab523 /.app/lib/app-conf
parenta3ce3f7eabbb746aa9ced430bcd55391742c738b (diff)
downloadapp.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.gz
app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.bz2
app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.xz
app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.zip
o Proper implementation of start, stop and status.
Diffstat (limited to '.app/lib/app-conf')
-rw-r--r--.app/lib/app-conf10
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"