Sha256: 5a54018aadc8784dad5c95db2682a75a5080f633e6c146e490abe3a7a20ae3be

Contents?: true

Size: 619 Bytes

Versions: 12

Compression:

Stored size: 619 Bytes

Contents

#!/bin/bash
# Wait for writer
echo "Waiting for MySQL-1: "
while ! (mysqladmin ping --host="127.0.0.1" --port=33006 --user=root --password=password --silent 2> /dev/null); do
  echo -ne "."
  sleep 1
done
# Wait for reader
echo "Waiting for MySQL-2: "
while ! (mysqladmin ping --host="127.0.0.1" --port=33007 --user=root --password=password --silent 2> /dev/null); do
  echo -ne "."
  sleep 1
done
# Wait for proxysql
echo "Waiting for ProxySQL:"
while ! (mysqladmin ping --host="127.0.0.1" --port=33005 --user=root --password=password --silent 2> /dev/null); do
  echo -ne "."
  sleep 1
done

echo "All DBs are ready"

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
lhm-shopify-4.0.0 scripts/helpers/wait-for-dbs.sh
lhm-teak-3.6.4 scripts/helpers/wait-for-dbs.sh
lhm-teak-3.6.3 scripts/helpers/wait-for-dbs.sh
lhm-teak-3.6.2 scripts/helpers/wait-for-dbs.sh
lhm-teak-3.6.1 scripts/helpers/wait-for-dbs.sh
lhm-teak-3.6.0 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.5 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.4 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.3 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.2 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.0 scripts/helpers/wait-for-dbs.sh
lhm-shopify-3.5.1 scripts/helpers/wait-for-dbs.sh