1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2026-01-29 00:27:24 +00:00

Some changes

This commit is contained in:
andryyy
2016-12-12 09:26:27 +01:00
parent 2135f17de5
commit 57ca2b9f55
4 changed files with 8 additions and 8 deletions

View File

@@ -7,6 +7,7 @@ NAME="mariadb-mailcow"
reconf() {
echo "Installing database schema (this will not overwrite existing data)"
echo "It may take a while for MariaDB to warm up, please wait..."
echo docker exec ${NAME} mysql -u${DBUSER} -p${DBPASS} ${DBNAME}
until docker exec ${NAME} /bin/bash -c "mysql -u'${DBUSER}' -p'${DBPASS}' ${DBNAME} < /assets/init.sql"; do
echo "Trying again in 2 seconds..."
sleep 2