From 33a0fd9c00df6b02b953406a5930df6513e4e8ef Mon Sep 17 00:00:00 2001 From: Otto Hollmann Date: Wed, 10 Mar 2021 22:55:09 +0100 Subject: [PATCH] Specify DB_DATABASE in docker init script. --- Docker/init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Docker/init.sh b/Docker/init.sh index 90ebd289..dde86946 100644 --- a/Docker/init.sh +++ b/Docker/init.sh @@ -69,7 +69,7 @@ if [ "$DB_DISABLE_INCLUDED" = "false" ]; then else echo "Create database schema if it does not exists ..." - mysql -u "$DB_USER" -h "$DB_HOST" -p"$DB_PASSWORD" --port="$DB_PORT" -e "source /home/Shinobi/sql/framework.sql" || true + mysql -u "$DB_USER" -h "$DB_HOST" -p"$DB_PASSWORD" --port="$DB_PORT" --database="$DB_DATABASE" -e "source /home/Shinobi/sql/framework.sql" || true fi DATABASE_CONFIG='{"host": "'$DB_HOST'","user": "'$DB_USER'","password": "'$DB_PASSWORD'","database": "'$DB_DATABASE'","port":'$DB_PORT'}'