From 152ba2addeb3751ac70365653350d06deba04c87 Mon Sep 17 00:00:00 2001 From: wiz Date: Sun, 5 Jan 2020 04:08:13 +0900 Subject: [PATCH] Set environment variables inside bsq-explorer-update wrapper script --- bsq-explorer-update | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bsq-explorer-update b/bsq-explorer-update index 6c57867..8de6364 100755 --- a/bsq-explorer-update +++ b/bsq-explorer-update @@ -2,10 +2,10 @@ set -a source /etc/default/bisq-seednode.env set +a -if [ -z "${BISQ_JSON_DIR}" ] || [ -z "${BSQ_EXPLORER_ROOT}" ];then - echo "Environment variable missing! Check bisq-seednode.env configuration!" - exit 1 -fi + +export BISQ_DATA_DIR=$BISQ_HOME/$BISQ_APP_NAME/$BISQ_BASE_CURRENCY +export BISQ_JSON_DIR=$BISQ_DATA_DIR/db/json +export BSQ_EXPLORER_ROOT=$BISQ_HOME/bisq-explorer/www while inotifywait -r -e modify,move,create,delete "${BISQ_JSON_DIR}" do