From 4f5fa3be3cb04afe1839951ac125f0b48fcd3518 Mon Sep 17 00:00:00 2001 From: KAYUII <577738@qq.com> Date: Tue, 7 Sep 2021 15:10:43 +0800 Subject: [PATCH 1/2] Update docker-lotus-entrypoint.sh Missing variable escape character --- scripts/docker-lotus-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/docker-lotus-entrypoint.sh b/scripts/docker-lotus-entrypoint.sh index 308a4b6eb55..de1dfbcc8f6 100755 --- a/scripts/docker-lotus-entrypoint.sh +++ b/scripts/docker-lotus-entrypoint.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -if [ ! -z DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then +if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then GATE="$LOTUS_PATH"/date_initialized # Don't init if already initialized. if [ ! -f "$GATE" ]; then @@ -12,7 +12,7 @@ if [ ! -z DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then fi # import wallet, if provided -if [ ! -z DOCKER_LOTUS_IMPORT_WALLET ]; then +if [ ! -z $DOCKER_LOTUS_IMPORT_WALLET ]; then /usr/local/bin/lotus-shed keyinfo import "$DOCKER_LOTUS_IMPORT_WALLET" fi From a75d67a42cdf926f2e2c358674204c1d338268e8 Mon Sep 17 00:00:00 2001 From: KAYUII <577738@qq.com> Date: Tue, 7 Sep 2021 15:11:29 +0800 Subject: [PATCH 2/2] Update docker-lotus-miner-entrypoint.sh Missing variable escape character --- scripts/docker-lotus-miner-entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/docker-lotus-miner-entrypoint.sh b/scripts/docker-lotus-miner-entrypoint.sh index 1cb153176f5..8cdbaecceff 100755 --- a/scripts/docker-lotus-miner-entrypoint.sh +++ b/scripts/docker-lotus-miner-entrypoint.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -if [ ! -z DOCKER_LOTUS_MINER_INIT ]; then +if [ ! -z $DOCKER_LOTUS_MINER_INIT ]; then GATE="$LOTUS_PATH"/date_initialized # Don't init if already initialized. - if [ -f "GATE" ]; then + if [ -f "$GATE" ]; then echo lotus-miner already initialized. exit 0 fi