From a4b653fdca809502243088494ad58431b127bec8 Mon Sep 17 00:00:00 2001 From: Teja Srivastasa Date: Fri, 29 Oct 2021 02:00:57 +0200 Subject: [PATCH] Update installation success message #30672 --- programs/install/Install.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/programs/install/Install.cpp b/programs/install/Install.cpp index 606af7ecd0d..57e56c8b9ea 100644 --- a/programs/install/Install.cpp +++ b/programs/install/Install.cpp @@ -809,13 +809,23 @@ int mainEntryClickHouseInstall(int argc, char ** argv) if (has_password_for_default_user) maybe_password = " --password"; - fmt::print( + if (fs::exists(pid_file)) { + fmt::print( + "\nClickHouse has been successfully installed.\n" + "\nRestart clickhouse-server with:\n" + " sudo clickhouse restart\n" + "\nStart clickhouse-client with:\n" + " clickhouse-client{}\n\n", + maybe_password); + } else { + fmt::print( "\nClickHouse has been successfully installed.\n" "\nStart clickhouse-server with:\n" " sudo clickhouse start\n" "\nStart clickhouse-client with:\n" " clickhouse-client{}\n\n", maybe_password); + } } catch (const fs::filesystem_error &) {