From 6db30d20ffe3351f18adb6ea5666415022281567 Mon Sep 17 00:00:00 2001 From: Bassem Debbabi Date: Thu, 14 Apr 2016 12:14:20 +0200 Subject: [PATCH] Consider COHORTE_BASE environment variable while running a node --- CHANGELOG.txt | 3 +++ bin/scripts/common.py | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 779e78a..792271e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -5,6 +5,9 @@ Changes form the 1.1.1 to 1.1.2 build: ${timestamp} * Consider OSGi framework user-provided extra packages [isandlaTech/cohorte-runtime#36] * Do not start Fragment bundles in OSGi [isandlaTech/cohorte-runtime#35] +** Improvements + * Consider COHORTE_BASE environment variable while running a node + Changes form the 1.1.0 to 1.1.1 ------------------------------- diff --git a/bin/scripts/common.py b/bin/scripts/common.py index 6fdcb91..9898e96 100755 --- a/bin/scripts/common.py +++ b/bin/scripts/common.py @@ -55,8 +55,11 @@ def generate_run(node_dir): echo exit fi - -bash $COHORTE_HOME/bin/cohorte-start-node --base $(pwd) $* +if test -z "$COHORTE_BASE" +then + COHORTE_BASE=$(pwd) +fi +bash $COHORTE_HOME/bin/cohorte-start-node --base $COHORTE_BASE $* """ file_name = os.path.join(node_dir, "run")