# create bexng file-based config mkdir -p /etc/bexng echo "${DOMAIN}" > /etc/bexng/name cat >"/etc/bexng/secrets.exs" </usr/local/sbin/bexng-before-start </dev/null 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..." start bitcoind start postgresql start bexng start bexng-frontend