Skip to content
Permalink
Browse files

Set default value of MESATEE_CFG_DIR in service.sh (#73)

  • Loading branch information
mssun committed Nov 22, 2019
1 parent 90c6ebf commit 942bbd902c0acc7af74e03aa8a6a4274642ce457
Showing with 8 additions and 0 deletions.
  1. +8 −0 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"
}

0 comments on commit 942bbd9

Please sign in to comment.
You can’t perform that action at this time.