From d42261697dd389afe36cf49f66b1e7dcfc775493 Mon Sep 17 00:00:00 2001 From: Cong Zhao Date: Tue, 22 Nov 2022 20:56:06 +0800 Subject: [PATCH] [fix][cli] Fix start cli error (#2024) --- hugegraph-dist/src/assembly/static/bin/hugegraph | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hugegraph-dist/src/assembly/static/bin/hugegraph b/hugegraph-dist/src/assembly/static/bin/hugegraph index f39a15c25a..9939ececb5 100644 --- a/hugegraph-dist/src/assembly/static/bin/hugegraph +++ b/hugegraph-dist/src/assembly/static/bin/hugegraph @@ -37,9 +37,13 @@ ### END INIT INFO # Variables +# it requires user to set a fixed abs path manually INSTALL_DIR= SERVER_PORT= +${INSTALL_DIR:?"Please set variables 'INSTALL_DIR'"} +${SERVER_PORT:?"Please set variables 'SERVER_PORT'"} + BIN_DIR=$INSTALL_DIR/bin SERVER_URL="http://localhost:${SERVER_PORT}" DETECT_URL="$SERVER_URL/versions"