summaryrefslogtreecommitdiffstats
path: root/compass-deck/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'compass-deck/start.sh')
-rwxr-xr-xcompass-deck/start.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/compass-deck/start.sh b/compass-deck/start.sh
new file mode 100755
index 0000000..e4f2b73
--- /dev/null
+++ b/compass-deck/start.sh
@@ -0,0 +1,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