mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-27 13:58:05 +00:00
6ea0d87934
The default makes little sense after 9b19b08e06
,
but the feature might still be useful.
15 lines
281 B
Bash
Executable file
15 lines
281 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BIN=/usr/bin/neo-go
|
|
|
|
case $@ in
|
|
"node"*)
|
|
echo "=> Try to restore blocks before running node"
|
|
if [ -n "$ACC" -a -f "$ACC" ]; then
|
|
gunzip --stdout "$ACC" > /privnet.acc
|
|
${BIN} db restore -p --config-path /config -i /privnet.acc
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
${BIN} "$@"
|