aboutsummaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.sh b/init.sh
index 55be6ee..2fc915d 100755
--- a/init.sh
+++ b/init.sh
@@ -13,6 +13,14 @@ echo "# Connected to internet!"
echo ""
+echo "# Testing DB availability"
+while ! echo 'exit' | mysql; do
+ sleep 5
+done
+echo "# Database seems to be available (ignore error messages above)"
+
+echo ""
+
cd "$BASE_DIR/LYLLRuoka"
echo "# node server.js:"
node server.js