2019-12-11 02:31:32 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2020-03-01 20:53:50 +00:00
|
|
|
# Wait to see if electrs is synced
|
2019-12-11 02:31:32 +00:00
|
|
|
echo "Checking if electrum server is ready is synced..."
|
|
|
|
while [ ! -f "/tmp/electrs_up_to_date" ]; do
|
|
|
|
echo "electrs not synced, sleeping 1m"
|
|
|
|
/bin/sleep 30s
|
|
|
|
done
|
|
|
|
|
|
|
|
exit 0
|