Small fixes

This commit is contained in:
Paramtamtam 2020-05-04 12:27:57 +05:00
parent a4e61c9556
commit cbcd3b9a76
No known key found for this signature in database
GPG Key ID: D261715E1D37D6C8
1 changed files with 3 additions and 2 deletions

View File

@ -105,13 +105,14 @@ if [ -n "$(ls /docker-entrypoint-initdb.d/)" ] || [ -n "$CLICKHOUSE_DB" ]; then
clickhouseclient=( clickhouse-client --multiquery -u $CLICKHOUSE_USER $WITH_PASSWORD )
echo
# create default database, if defined
if [ -n "$CLICKHOUSE_DB" ]; then
echo "Create database '$CLICKHOUSE_DB'"
echo "$0: create database '$CLICKHOUSE_DB'"
"${clickhouseclient[@]}" "CREATE DATABASE IF NOT EXISTS $CLICKHOUSE_DB";
fi
echo
for f in /docker-entrypoint-initdb.d/*; do
case "$f" in
*.sh)