mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 10:31:57 +00:00
Update entrypoint.sh
without -q option the database does not get created at startup
This commit is contained in:
parent
89df9915bb
commit
d61da39c10
@ -110,7 +110,7 @@ if [ -n "$(ls /docker-entrypoint-initdb.d/)" ] || [ -n "$CLICKHOUSE_DB" ]; then
|
|||||||
# create default database, if defined
|
# create default database, if defined
|
||||||
if [ -n "$CLICKHOUSE_DB" ]; then
|
if [ -n "$CLICKHOUSE_DB" ]; then
|
||||||
echo "$0: create database '$CLICKHOUSE_DB'"
|
echo "$0: create database '$CLICKHOUSE_DB'"
|
||||||
"${clickhouseclient[@]}" "CREATE DATABASE IF NOT EXISTS $CLICKHOUSE_DB";
|
"${clickhouseclient[@]}" -q "CREATE DATABASE IF NOT EXISTS $CLICKHOUSE_DB";
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
|
Loading…
Reference in New Issue
Block a user