2019-11-29 10:36:05 +00:00
|
|
|
#!/bin/sh
|
2020-01-28 10:09:19 +00:00
|
|
|
|
|
|
|
BIN=/usr/bin/neo-go
|
|
|
|
|
|
|
|
case $@ in
|
2021-10-16 12:25:55 +00:00
|
|
|
"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
|
|
|
|
;;
|
2020-01-28 10:09:19 +00:00
|
|
|
esac
|
|
|
|
|
|
|
|
${BIN} "$@"
|