Wait until MariaDB is actually started

This commit is contained in:
Disassembler 2018-01-19 17:14:25 +01:00
parent 8a50e772e4
commit 8a4d5102a2
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -24,4 +24,5 @@ rc-update add mariadb boot
service mariadb start service mariadb start
# Configure MariaDB admin # Configure MariaDB admin
docker exec -i mariadb sh -c 'until [ -x /run/mysqld/mysqld.sock ]; do usleep 100000; done'
cat ${SOURCE_DIR}/adminpwd.sql | docker exec -i mariadb mysql cat ${SOURCE_DIR}/adminpwd.sql | docker exec -i mariadb mysql