From 0fb3dd427c88feb503c7b0ab7c63c2b077fca476 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sat, 1 May 2021 08:15:49 -0600 Subject: [PATCH] Revert "fix(entrypoint): fix missing db name for SQL import" This reverts commit 1630094cf791660a07fd2aea1ca9389cc28344b4. --- entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 854af85..ae54237 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -127,7 +127,7 @@ for f in /docker-entrypoint-initdb.d/*; do *.sql) if [ -s "$f" ]; then 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 fi printf "\n" @@ -136,7 +136,7 @@ for f in /docker-entrypoint-initdb.d/*; do *.sql.gz) if [ -s "$f" ]; then 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 fi printf "\n" @@ -177,4 +177,4 @@ case "$1" in esac exit 0 -#EOF +#EOF \ No newline at end of file