diff --git a/.docker/privnet-entrypoint.sh b/.docker/privnet-entrypoint.sh index 3baffe9cf..d59632169 100755 --- a/.docker/privnet-entrypoint.sh +++ b/.docker/privnet-entrypoint.sh @@ -2,15 +2,11 @@ BIN=/usr/bin/neo-go -if [ -z "$ACC" ]; then - ACC=/6000-privnet-blocks.acc.gz -fi - case $@ in "node"*) echo "=> Try to restore blocks before running node" - if test -f $ACC; then - gunzip --stdout /$ACC > /privnet.acc + if [ -n "$ACC" -a -f "$ACC" ]; then + gunzip --stdout "$ACC" > /privnet.acc ${BIN} db restore -p --config-path /config -i /privnet.acc fi ;;