Skip to content

Commit

Permalink
[SR-4389] make STARROCKS_HOME compatible with DORIS_HOME in configura…
Browse files Browse the repository at this point in the history
…tion and startup be/fe. (StarRocks#27)

make STARROCKS_HOME compatible with DORIS_HOME, since the configuration can not be changed on user side.
  • Loading branch information
Linkerist authored Sep 7, 2021
1 parent c7256b7 commit 5b739eb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/start_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ while true; do
done

export STARROCKS_HOME=`cd "$curdir/.."; pwd`
# compatible with DORIS_HOME: DORIS_HOME still be using in config on the user side, so set DORIS_HOME to the meaningful value in case of wrong envs.
export DORIS_HOME="$STARROCKS_HOME"
source $STARROCKS_HOME/bin/common.sh

# export env variables from be.conf
Expand Down
3 changes: 3 additions & 0 deletions bin/start_fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ done

export STARROCKS_HOME=`cd "$curdir/.."; pwd`

# compatible with DORIS_HOME: DORIS_HOME still be using in config on the user side, so set DORIS_HOME to the meaningful value in case of wrong envs.
export DORIS_HOME="$STARROCKS_HOME"

source $STARROCKS_HOME/bin/common.sh

# export env variables from fe.conf
Expand Down
2 changes: 2 additions & 0 deletions bin/stop_be.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ curdir=`dirname "$0"`
curdir=`cd "$curdir"; pwd`

export STARROCKS_HOME=`cd "$curdir/.."; pwd`
# compatible with DORIS_HOME: DORIS_HOME still be using in config on the user side, so set DORIS_HOME to the meaningful value in case of wrong envs.
export DORIS_HOME="$STARROCKS_HOME"
export PID_DIR=`cd "$curdir"; pwd`

source $STARROCKS_HOME/bin/common.sh
Expand Down
2 changes: 2 additions & 0 deletions bin/stop_fe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ curdir=`dirname "$0"`
curdir=`cd "$curdir"; pwd`

export STARROCKS_HOME=`cd "$curdir/.."; pwd`
# compatible with DORIS_HOME: DORIS_HOME still be using in config on the user side, so set DORIS_HOME to the meaningful value in case of wrong envs.
export DORIS_HOME="$STARROCKS_HOME"
export PID_DIR=`cd "$curdir"; pwd`

source $STARROCKS_HOME/bin/common.sh
Expand Down

0 comments on commit 5b739eb

Please sign in to comment.