Skip to content

Commit

Permalink
Merge pull request #7291 from Kayuii/master
Browse files Browse the repository at this point in the history
docker entrypoint.sh missing variable escape character
  • Loading branch information
magik6k authored Sep 7, 2021
2 parents b089cc4 + a75d67a commit 93e1c80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/docker-lotus-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
4 changes: 2 additions & 2 deletions scripts/docker-lotus-miner-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 93e1c80

Please sign in to comment.