14 lines
282 B
Bash
Executable file
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
|
|
|
|
|