teaclave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ms...@apache.org
Subject [incubator-mesatee] branch master updated: Set default value of MESATEE_CFG_DIR in service.sh (#73)
Date Fri, 22 Nov 2019 01:38:38 GMT
This is an automated email from the ASF dual-hosted git repository.

mssun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mesatee.git


The following commit(s) were added to refs/heads/master by this push:
     new 942bbd9  Set default value of MESATEE_CFG_DIR in service.sh (#73)
942bbd9 is described below

commit 942bbd902c0acc7af74e03aa8a6a4274642ce457
Author: Mingshen Sun <bob@mssun.me>
AuthorDate: Thu Nov 21 17:38:28 2019 -0800

    Set default value of MESATEE_CFG_DIR in service.sh (#73)
---
 service.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/service.sh b/service.sh
index 27e6122..22e0aec 100755
--- a/service.sh
+++ b/service.sh
@@ -5,6 +5,14 @@ if [ -z "${MESATEE_BIN}" ]; then
     echo "env var MESATEE_BIN is not set, use ${MESATEE_BIN}"
 fi
 
+if [ -z "${MESATEE_CFG_DIR}" ]; then
+    SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 &&
pwd )"
+    MESATEE_CFG_DIR=$SCRIPT_DIR
+    echo "env var MESATEE_CFG_DIR is not set, use ${MESATEE_CFG_DIR}"
+fi
+
+export MESATEE_CFG_DIR
+
 get_stdout_file() {
     echo -n "/tmp/$1.log"
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@mesatee.apache.org
For additional commands, e-mail: commits-help@mesatee.apache.org


Mime
View raw message