aboutsummaryrefslogtreecommitdiff
path: root/.app/lib/app-operate
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2012-10-17 15:20:45 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2012-10-17 15:20:45 +0200
commitd8890e75cf83504320ad12b657112cd5347fb600 (patch)
tree4a74422e225059597fdd61414991a723f41ef471 /.app/lib/app-operate
parent019129977ea279851386528be8a76ee33ff8392b (diff)
downloadapp.sh-d8890e75cf83504320ad12b657112cd5347fb600.tar.gz
app.sh-d8890e75cf83504320ad12b657112cd5347fb600.tar.bz2
app.sh-d8890e75cf83504320ad12b657112cd5347fb600.tar.xz
app.sh-d8890e75cf83504320ad12b657112cd5347fb600.zip
o Reworking conf to work as documented. Adding test case.
Diffstat (limited to '.app/lib/app-operate')
-rw-r--r--.app/lib/app-operate5
1 files changed, 4 insertions, 1 deletions
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