This commit is contained in:
proller 2017-01-25 18:14:39 +03:00
parent 3219d20df8
commit 7982d84904

View File

@ -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)