Sha256: bb8b0160f6ef1009504a3e64b3cbaa36a5f85d88c5b7e8aca7cd92b26a787197

Contents?: true

Size: 619 Bytes

Versions: 10

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=13006 --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=13007 --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=13005 --user=root --password=password --silent 2> /dev/null); do
  echo -ne "."
  sleep 1
done

echo "All DBs are ready"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lhm-shopify-4.4.2 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.4.1 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.4.0 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.3.0 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.2.3 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.2.2 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.2.1 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.2.0 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.1.1 scripts/helpers/wait-for-dbs.sh
lhm-shopify-4.1.0 scripts/helpers/wait-for-dbs.sh