adding auto-accept to docker entrypointt snapshot import
This commit is contained in:
parent
2cd6aea94b
commit
6d47bcba54
@ -1,11 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "WTF IN SH $DOCKER_LOTUS_IMPORT_SNAPSHOT"
|
||||
if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then
|
||||
GATE="$LOTUS_PATH"/date_initialized
|
||||
# Don't init if already initialized.
|
||||
if [ ! -f "$GATE" ]; then
|
||||
echo importing minimal snapshot
|
||||
/usr/local/bin/lotus daemon --import-snapshot "$DOCKER_LOTUS_IMPORT_SNAPSHOT" --halt-after-import
|
||||
echo "yes" | /usr/local/bin/lotus daemon --import-snapshot "$DOCKER_LOTUS_IMPORT_SNAPSHOT" --halt-after-import
|
||||
# Block future inits
|
||||
date > "$GATE"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user