mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-11 01:54:55 +00:00
a6f9df105c
* Allow use encryption for distributed tables * wip * fix * rename encryption to secure * Fix DirectoryMonitor with +secure * fix * fix * Update DirectoryMonitor.cpp * Update DirectoryMonitor.cpp
23 lines
711 B
Bash
Executable File
23 lines
711 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
# Not default server config needed
|
|
|
|
tcp_port_secure=`${CLICKHOUSE_EXTRACT_CONFIG} -k tcp_port_secure 2>/dev/null`
|
|
if [ -z ${tcp_port_secure} ]; then
|
|
# Secure port disabled. Fake result
|
|
cat $CURDIR/00505_secure.reference
|
|
else
|
|
# Auto port detect
|
|
${CLICKHOUSE_CLIENT} --secure -q "SELECT 1";
|
|
${CLICKHOUSE_CLIENT} --secure --port=${CLICKHOUSE_PORT_TCP_SECURE} -q "SELECT 2";
|
|
|
|
${CLICKHOUSE_CURL} -sS --insecure ${CLICKHOUSE_URL_HTTPS}?query=SELECT%203
|
|
|
|
${CLICKHOUSE_CLIENT} --secure -q "SELECT 1";
|
|
|
|
cat $CURDIR/00505_distributed_secure.data | $CLICKHOUSE_CLIENT --secure -n -m
|
|
fi
|