Revert "fix(entrypoint): fix missing db name for SQL import"
This reverts commit 1630094cf7
.
This commit is contained in:
parent
1630094cf7
commit
0fb3dd427c
@ -127,7 +127,7 @@ for f in /docker-entrypoint-initdb.d/*; do
|
|||||||
*.sql)
|
*.sql)
|
||||||
if [ -s "$f" ]; then
|
if [ -s "$f" ]; then
|
||||||
printf "IMPORT-SQL: Importing %s\n" "$f"
|
printf "IMPORT-SQL: Importing %s\n" "$f"
|
||||||
if (! mysqld --user=mysql --bootstrap --verbose=0 --skip-name-resolve --skip-networking=0 "$MYSQL_DATABASE" < "$f"); then
|
if (! mysqld --user=mysql --bootstrap --verbose=0 --skip-name-resolve --skip-networking=0 < "$f"); then
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
printf "\n"
|
printf "\n"
|
||||||
@ -136,7 +136,7 @@ for f in /docker-entrypoint-initdb.d/*; do
|
|||||||
*.sql.gz)
|
*.sql.gz)
|
||||||
if [ -s "$f" ]; then
|
if [ -s "$f" ]; then
|
||||||
printf "IMPORT-SQL: Importing %s\n" "$f"
|
printf "IMPORT-SQL: Importing %s\n" "$f"
|
||||||
if (! gunzip -c "$f" | mysqld --user=mysql --bootstrap --verbose=0 --skip-name-resolve --skip-networking=0 "$MYSQL_DATABASE"); then
|
if (! gunzip -c "$f" | mysqld --user=mysql --bootstrap --verbose=0 --skip-name-resolve --skip-networking=0); then
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
printf "\n"
|
printf "\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user