Update Install.cpp

This commit is contained in:
alexey-milovidov 2021-10-31 12:33:42 +03:00 committed by GitHub
parent 661c288f49
commit 48ca14b895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -809,8 +809,9 @@ int mainEntryClickHouseInstall(int argc, char ** argv)
if (has_password_for_default_user)
maybe_password = " --password";
fs::path pid_file = prefix / options["pid-path"].as<std::string>() / "clickhouse-server.pid";
if (fs::exists(pid_file)) {
fs::path pid_file = pid_path / "clickhouse-server.pid";
if (fs::exists(pid_file))
{
fmt::print(
"\nClickHouse has been successfully installed.\n"
"\nRestart clickhouse-server with:\n"