mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
wip
This commit is contained in:
parent
3219d20df8
commit
7982d84904
@ -64,10 +64,11 @@ def main(args):
|
||||
|
||||
if args.shard is None:
|
||||
try:
|
||||
check_call(['grep', '-q', '127.0.0.2', '/etc/clickhouse-server/config-preprocessed.xml'], )
|
||||
check_call(['grep', '-qE', '"127.0.0.2|<listen_host>::</listen_host>"', '/etc/clickhouse-server/config-preprocessed.xml'], )
|
||||
args.shard = True
|
||||
except CalledProcessError:
|
||||
args.shard = False
|
||||
# TODO: false here after setting <listen_host>::1</listen_host>
|
||||
args.shard = True
|
||||
|
||||
base_dir = os.path.abspath(args.queries)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user