From 71ea98abe8961ab5ca2d29e4f5480517a873df9f Mon Sep 17 00:00:00 2001 From: Alex Grin Date: Fri, 29 Nov 2019 12:07:48 -0500 Subject: [PATCH] Update snapshot.sh --- snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshot.sh b/snapshot.sh index b53a9b9..1e68177 100644 --- a/snapshot.sh +++ b/snapshot.sh @@ -30,7 +30,7 @@ while true; do done echo "final: $HEIGHT $HEADERS $BLOCKS $WALLET_BLOCKS" -LBRYCRD_VERSION=$(sudo docker exec ubuntu_lbrycrd_1 lbrycrd-cli -conf=/etc/lbry/lbrycrd.conf getnetworkinfo 2>/dev/null | grep -m 1 subversion | egrep -o '[0-9\.]+') +LBRYCRD_VERSION=$(sudo docker exec ${user}_lbrycrd_1 lbrycrd-cli -conf=/etc/lbry/lbrycrd.conf getnetworkinfo 2>/dev/null | grep -m 1 subversion | egrep -o '[0-9\.]+') WALLET_SERVER_VERSION=$(echo '{"id":1,"method":"server.version"}' | nc localhost 50001 | egrep -m 1 -o 'result[^,]+' | cut -d'"' -f3) echo "Stopping servers"