We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7484bea + 1f5ed12 commit 4379c92Copy full SHA for 4379c92
root/etc/cont-init.d/40-initialise-db
@@ -73,14 +73,17 @@ GRANT ALL ON *.* TO 'root'@'%' WITH GRANT OPTION ;
73
DROP DATABASE IF EXISTS test ;
74
$MYSQL_DB_SETUP
75
EONEWSQL
76
-chown -R abc:abc "${tempSqlFile}"
+
77
echo "Setting Up Initial Databases"
78
79
# add all sql from a user defined directory on first init
80
if [ -e "/config/initdb.d" ] && [ -n "$(/bin/ls -A /config/initdb.d/*.sql 2>/dev/null)" ]; then
81
cat /config/initdb.d/*.sql >> "${tempSqlFile}"
82
fi
83
84
+chown -R abc:abc "${tempSqlFile}"
85
86
87
# ingest remote sql if REMOTE_SQL is set
88
if [ -n "${REMOTE_SQL+set}" ]; then
89
IFS=, read -ra URLS <<< "${REMOTE_SQL}"
0 commit comments