cytube/bootstrap.sh
2020-08-16 13:41:36 +02:00

14 lines
282 B
Bash
Executable file

#!/bin/bash
#Waiting for database connection
echo "-- Waiting for mysql database to finish initialization"
while ! nc -vz $MYSQL_HOST $MYSQL_PORT; do sleep 1; done
echo "-- Database initialized."
envsubst < /config.template.yaml > /sync/config.yaml
cd sync
exec node index.js