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,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 &)
{