mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-22 19:19:09 +00:00
docker: remove default ACC value, protect var expansion
The default makes little sense after 9b19b08e06
,
but the feature might still be useful.
This commit is contained in:
parent
fb6c00d539
commit
6ea0d87934
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue