mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-24 19:30:34 +00:00
eb07a4cfc6
Signed-off-by: Evgeniy Stratonikov <evgeniy@nspcc.ru>
15 lines
255 B
Bash
Executable file
15 lines
255 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BIN=/usr/bin/neo-go
|
|
|
|
case $@ in
|
|
"node"*)
|
|
echo "=> Try to restore blocks before running node"
|
|
if [ -f "$ACC" ]; then
|
|
gunzip --stdout "$ACC" >/privnet.acc
|
|
${BIN} db restore -p --config-path /config -i /privnet.acc
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
${BIN} "$@"
|