nightingale1/dockerfiles/n9e/entrpoint.sh

18 lines
491 B
Bash
Executable File

#!/bin/bash
mysqlRootPassword=1234
until mysql -hmysql -u root -p$mysqlRootPassword -e ";" ; do
echo "Can't connect mysql, retry"
sleep 5
done
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_ams.sql
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_hbs.sql
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_job.sql
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_mon.sql
mysql -hmysql -uroot -p$mysqlRootPassword < sql/n9e_rdb.sql
./control start all
sleep infinity