Merge pull request 'Automate y/n prompt on snapshot import' (#6) from entrypoint_update into master
Reviewed-on: #6
This commit is contained in:
commit
54d35ac88c
@ -5,7 +5,7 @@ if [ ! -z $DOCKER_LOTUS_IMPORT_SNAPSHOT ]; then
|
|||||||
# Don't init if already initialized.
|
# Don't init if already initialized.
|
||||||
if [ ! -f "$GATE" ]; then
|
if [ ! -f "$GATE" ]; then
|
||||||
echo importing minimal snapshot
|
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
|
# Block future inits
|
||||||
date > "$GATE"
|
date > "$GATE"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user