From 9b0320c8b47c43adce1aa5d9821b67c1fa42e1d6 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Tue, 17 Jan 2023 19:48:26 +0100 Subject: v1.8 Build fix --- plugins/fcgi/socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/fcgi/socket.cpp') diff --git a/plugins/fcgi/socket.cpp b/plugins/fcgi/socket.cpp index c899de5..7d607f6 100644 --- a/plugins/fcgi/socket.cpp +++ b/plugins/fcgi/socket.cpp @@ -246,7 +246,7 @@ std::string generate_unix_domain_socket(const std::string& directory) } FileSocketApp::FileSocketApp(const std::string& app_addr, boost::asio::io_context& io_context): - m_socket_file{generate_unix_domain_socket("/var/lib/webserver")}, + m_socket_file{generate_unix_domain_socket(fs::exists("/var/lib/webserver") ? "/var/lib/webserver" : ".")}, m_fcgi_process{app_addr, m_socket_file}, m_file_socket{m_socket_file, io_context} { -- cgit v1.2.3