mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-23 03:41:34 +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
|
BIN=/usr/bin/neo-go
|
||||||
|
|
||||||
if [ -z "$ACC" ]; then
|
|
||||||
ACC=/6000-privnet-blocks.acc.gz
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $@ in
|
case $@ in
|
||||||
"node"*)
|
"node"*)
|
||||||
echo "=> Try to restore blocks before running node"
|
echo "=> Try to restore blocks before running node"
|
||||||
if test -f $ACC; then
|
if [ -n "$ACC" -a -f "$ACC" ]; then
|
||||||
gunzip --stdout /$ACC > /privnet.acc
|
gunzip --stdout "$ACC" > /privnet.acc
|
||||||
${BIN} db restore -p --config-path /config -i /privnet.acc
|
${BIN} db restore -p --config-path /config -i /privnet.acc
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue