15 lines
282 B
Bash
15 lines
282 B
Bash
|
#!/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
|
||
|
|
||
|
|