From d8890e75cf83504320ad12b657112cd5347fb600 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 17 Oct 2012 15:20:45 +0200 Subject: o Reworking conf to work as documented. Adding test case. --- .app/lib/app-operate | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to '.app/lib/app-operate') diff --git a/.app/lib/app-operate b/.app/lib/app-operate index 8c9692b..e28df96 100644 --- a/.app/lib/app-operate +++ b/.app/lib/app-operate @@ -21,7 +21,9 @@ run_control() { assert_is_instance operate_usage "$name" "$instance" ( - cd $name/$instance/current + cd $name/$instance + APPSH_INSTANCE_HOME=`pwd` + cd current bin=`get_conf $BASEDIR $name $instance app.method` @@ -48,6 +50,7 @@ run_control() { APPSH_HOME=$APPSH_HOME \ APPSH_NAME=$name \ APPSH_INSTANCE=$instance \ + APPSH_INSTANCE_HOME=$APPSH_INSTANCE_HOME \ $bin local ret=$? set +x -- cgit v1.2.3