aboutsummaryrefslogtreecommitdiff
path: root/.app/lib/app-operate
diff options
context:
space:
mode:
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