Update installation success message #30672

This commit is contained in:
Teja Srivastasa 2021-10-29 02:00:57 +02:00
parent 44684a8dff
commit a4b653fdca

View File

@ -809,6 +809,15 @@ int mainEntryClickHouseInstall(int argc, char ** argv)
if (has_password_for_default_user)
maybe_password = " --password";
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"
@ -817,6 +826,7 @@ int mainEntryClickHouseInstall(int argc, char ** argv)
" clickhouse-client{}\n\n",
maybe_password);
}
}
catch (const fs::filesystem_error &)
{
std::cerr << getCurrentExceptionMessage(false) << '\n';