Default user creation fixed

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

View File

@ -66,8 +66,8 @@ done
# if clickhouse user is defined - create it (user "default" already exists out of box)
if [ -n "$CLICKHOUSE_USER" ] && [ "$CLICKHOUSE_USER" != "default" ] || [ -n "$CLICKHOUSE_PASSWORD" ]; then
echo "Create user '$CLICKHOUSE_USER' instead default"
cat <<EOT >> /etc/clickhouse-server/users.d/default-user.xml
echo "$0: create new user '$CLICKHOUSE_USER' instead 'default'"
cat <<EOT > /etc/clickhouse-server/users.d/default-user.xml
<yandex>
<!-- Docs: <https://clickhouse.tech/docs/en/operations/settings/settings_users/> -->
<users>