From eb1228bba0306aa0835226e8d0d28ae6fd1d27a0 Mon Sep 17 00:00:00 2001 From: alesapin Date: Wed, 7 Apr 2021 23:00:14 +0300 Subject: [PATCH] Don't fail if directories already exists --- tests/config/install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/config/install.sh b/tests/config/install.sh index 9c4f8caca07..7e01860e241 100755 --- a/tests/config/install.sh +++ b/tests/config/install.sh @@ -71,8 +71,8 @@ if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]] # There is a bug in config reloading, so we cannot override macros using --macros.replica r2 # And we have to copy configs... - mkdir /etc/clickhouse-server1 - mkdir /etc/clickhouse-server2 + mkdir -p /etc/clickhouse-server1 + mkdir -p /etc/clickhouse-server2 chown clickhouse /etc/clickhouse-server1 chown clickhouse /etc/clickhouse-server2 chgrp clickhouse /etc/clickhouse-server1 @@ -84,8 +84,8 @@ if [[ -n "$USE_DATABASE_REPLICATED" ]] && [[ "$USE_DATABASE_REPLICATED" -eq 1 ]] sudo -u clickhouse cat /etc/clickhouse-server/config.d/macros.xml | sed "s|r1|r2|" > /etc/clickhouse-server1/config.d/macros.xml sudo -u clickhouse cat /etc/clickhouse-server/config.d/macros.xml | sed "s|s1|s2|" > /etc/clickhouse-server2/config.d/macros.xml - sudo mkdir /var/lib/clickhouse1 - sudo mkdir /var/lib/clickhouse2 + sudo mkdir -p /var/lib/clickhouse1 + sudo mkdir -p /var/lib/clickhouse2 sudo chown clickhouse /var/lib/clickhouse1 sudo chown clickhouse /var/lib/clickhouse2 sudo chgrp clickhouse /var/lib/clickhouse1