working commit
This commit is contained in:
+3
-2
@@ -3,14 +3,15 @@
|
||||
#include <string>
|
||||
#include <cstring>
|
||||
|
||||
#include <defines.hpp>
|
||||
#include <tservice.hpp>
|
||||
#include <uxlogger.hpp>
|
||||
#include <srvconfig.hpp>
|
||||
|
||||
std::expected<void, std::string> Run() {
|
||||
ServConfig config;
|
||||
|
||||
auto readRes = config.Read("helmetsrv.conf");
|
||||
std::string confdir(SRV_CONFDIR);
|
||||
auto readRes = config.Read(confdir + "/" + "helmetsrv.conf");
|
||||
if (!readRes) {
|
||||
return std::unexpected("Read config error: " + readRes.error());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user