./priv/roles/Backend.sh in stacco-0.1.33 vs ./priv/roles/Backend.sh in stacco-0.1.35
- old
+ new
@@ -66,15 +66,13 @@
echo "bootstrapping bitcoind service"
start bitcoind
stop bitcoind
bitcoind_data_volume=$(docker inspect -f '{{.Volumes}}' bitcoind-data | tr '[]' ' ' | cut -d' ' -f 2 | cut -d':' -f 2)
pushd "${bitcoind_data_volume}" >/dev/null
- rm -rf ./*
-
- sysctl net.ipv4.tcp_rmem='4096 87380 512000'
- sysctl net.ipv4.tcp_wmem='4096 16384 512000'
- aws --region="${AWS_REGION}" s3 cp --recursive "s3://bex-blockchain-${WALLET_NETWORK}/" "./"
- sysctl -p
+ until aws --region="${AWS_REGION}" s3 sync --delete "s3://bex-blockchain-${WALLET_NETWORK}/" "./"; do
+ echo "error occurred in sync; retrying"
+ sleep 0.2
+ done
find . -name "*.gz" -exec gunzip -v \{\} \;
popd >/dev/null
echo "starting docker-container services..."