From 8a4d5102a2ad7bd8057de4ebf40c2251196c5820 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 19 Jan 2018 17:14:25 +0100 Subject: [PATCH] Wait until MariaDB is actually started --- mariadb.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/mariadb.sh b/mariadb.sh index afe6c9a..31c3720 100755 --- a/mariadb.sh +++ b/mariadb.sh @@ -24,4 +24,5 @@ rc-update add mariadb boot service mariadb start # 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