neoneo-go/.docker/privnet-entrypoint.sh
Roman Khimov 2dfeb55d4c docker: add an entrypoint wrapper and 6K block dump to import
Make privnet the default for docker setups along the way and use alpine as the
base image because we now need to have sh and gzip. Fix #524.
2019-11-29 16:26:34 +03:00

6 lines
171 B
Bash
Executable file

#!/bin/sh
if test -f /6000-privnet-blocks.acc.gz; then
gunzip /6000-privnet-blocks.acc.gz
/usr/bin/neo-go db restore -i /6000-privnet-blocks.acc
fi
/usr/bin/neo-go "$@"