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"