Skip to content

Commit 6db30d2

Browse files
committed
Consider COHORTE_BASE environment variable while running a node
1 parent f5028ba commit 6db30d2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ Changes form the 1.1.1 to 1.1.2 build: ${timestamp}
55
* Consider OSGi framework user-provided extra packages [isandlaTech/cohorte-runtime#36]
66
* Do not start Fragment bundles in OSGi [isandlaTech/cohorte-runtime#35]
77

8+
** Improvements
9+
* Consider COHORTE_BASE environment variable while running a node
10+
811
Changes form the 1.1.0 to 1.1.1
912
-------------------------------
1013

bin/scripts/common.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,11 @@ def generate_run(node_dir):
5555
echo
5656
exit
5757
fi
58-
59-
bash $COHORTE_HOME/bin/cohorte-start-node --base $(pwd) $*
58+
if test -z "$COHORTE_BASE"
59+
then
60+
COHORTE_BASE=$(pwd)
61+
fi
62+
bash $COHORTE_HOME/bin/cohorte-start-node --base $COHORTE_BASE $*
6063
"""
6164

6265
file_name = os.path.join(node_dir, "run")

0 commit comments

Comments
 (0)