imbajin commented on code in PR #2421:
URL:
https://github.com/apache/incubator-hugegraph/pull/2421#discussion_r1464533702
##########
hugegraph-server/hugegraph-dist/docker/docker-entrypoint.sh:
##########
@@ -16,24 +16,30 @@
# under the License.
#
-# wait for storage like cassandra
-./bin/wait-storage.sh
+# create a folder to save the docker-related file
+DOCKER_FOLDER='./docker'
+mkdir -p $DOCKER_FOLDER
-# set auth if needed
-if [[ $AUTH == "true" ]]; then
- # set password if use do not provide
+INIT_FLAG_FILE="init_complete"
+
+if [ ! -f "${DOCKER_FOLDER}/${INIT_FLAG_FILE}" ]; then
+ # wait for storage backend
+ ./bin/wait-storage.sh
if [ -z "$PASSWORD" ]; then
- echo "you have not set the password, we will use the default password"
- PASSWORD="hugegraph"
+ ./bin/init-store.sh
Review Comment:
add echo/print before normal-init like "init in non-auth mode"
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]