summaryrefslogtreecommitdiffstats
path: root/compass-deck/start.sh
blob: e4f2b730de90b4a4f7525aafa2d44967ff30cf12 (plain)
1
2
3
4
5
6
7
#!/bin/bash
until mysql -h"compass-db" -u"root" -p"root" -e 'show databases'; do
  >&2 echo "DB is unavailable - sleeping"
  sleep 1
done
>&2 echo "DB is up"
systemctl start httpd