Skip to content

Commit

Permalink
feat: make snapshot optional
Browse files Browse the repository at this point in the history
  • Loading branch information
LinZexiao committed Jul 1, 2022
1 parent 0bc7e3b commit f546229
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docker/script/compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,11 @@ fi

echo "nettype:"
echo $nettype
./venus daemon --network=${nettype} --auth-url=http://127.0.0.1:8989 --import-snapshot /snapshot.car

if [ -f "/snapshot.car" ]
then
echo "snapshot.car exists"
./venus daemon --network=${nettype} --auth-url=http://127.0.0.1:8989 --import-snapshot /snapshot.car
else
echo "snapshot.car not found"
./venus daemon --network=${nettype} --auth-url=http://127.0.0.1:8989

0 comments on commit f546229

Please sign in to comment.